diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-09-28 12:14:16 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-09-28 12:14:16 +0200 |
commit | d6e6a4225650ff220c7fe0687d883552e4b45bde (patch) | |
tree | e5692e65674c2d424f48d1086c6fdab6704d5258 /test/test_download.py | |
parent | 76e7d1e74b10b99ed9289b0c30c5f4933f9d841e (diff) |
[vimeo:likes] Add new extractor (Fixes #3835)
Diffstat (limited to 'test/test_download.py')
-rw-r--r-- | test/test_download.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py index 2b8ac6975..8178015ea 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -139,7 +139,9 @@ def generator(test_case): if is_playlist: self.assertEqual(res_dict['_type'], 'playlist') + self.assertTrue('entries' in res_dict) expect_info_dict(self, test_case.get('info_dict', {}), res_dict) + if 'playlist_mincount' in test_case: assertGreaterEqual( self, @@ -188,7 +190,7 @@ def generator(test_case): expect_info_dict(self, tc.get('info_dict', {}), info_dict) finally: try_rm_tcs_files() - if is_playlist and res_dict is not None: + if is_playlist and res_dict is not None and res_dict.get('entries'): # Remove all other files that may have been extracted if the # extractor returns full results even with extract_flat res_tcs = [{'info_dict': e} for e in res_dict['entries']] |