diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2015-06-28 22:48:02 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2015-06-28 22:48:02 +0200 |
commit | 5acfa126c812c3ab7088af6c7df79697baee7831 (patch) | |
tree | c0737ff7272237cbb6e51aaa515ea87c737d34a7 /test/test_YoutubeDL.py | |
parent | 67134eaba1a56cec4117000acb2fc9284c9cdd9a (diff) | |
download | youtube-dl-5acfa126c812c3ab7088af6c7df79697baee7831.tar.gz youtube-dl-5acfa126c812c3ab7088af6c7df79697baee7831.zip |
[YoutubeDL] format spec: treat 'all' like a normal specifier
So you can use filters with it, for example 'all[width>=400][width<=600]'.
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 8f7aef512..709e3100f 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -317,6 +317,11 @@ class TestFormatSelection(unittest.TestCase): downloaded = ydl.downloaded_info_dicts[0] self.assertEqual(downloaded['format_id'], 'G') + ydl = YDL({'format': 'all[width>=400][width<=600]'}) + ydl.process_ie_result(info_dict) + downloaded_ids = [info['format_id'] for info in ydl.downloaded_info_dicts] + self.assertEqual(downloaded_ids, ['B', 'C', 'D']) + class TestYoutubeDL(unittest.TestCase): def test_subtitles(self): |