X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_YoutubeDL.py;h=ca25025e23a1eb1fd82eed39a534072bffe293ac;hb=bc7e7adf5154f15b74b2df3e2989f630667778ce;hp=bf78b005f68d0d1a675ea8b506d6b02031d7611b;hpb=5d583bdf6cff8161e2df87ba1a0c97a943596eab;p=youtube-dl diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index bf78b005f..ca25025e2 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -222,6 +222,11 @@ class TestFormatSelection(unittest.TestCase): downloaded = ydl.downloaded_info_dicts[0] self.assertEqual(downloaded['format_id'], 'dash-video-low') + ydl = YDL({'format': 'bestvideo[format_id^=dash][format_id$=low]'}) + ydl.process_ie_result(info_dict.copy()) + downloaded = ydl.downloaded_info_dicts[0] + self.assertEqual(downloaded['format_id'], 'dash-video-low') + formats = [ {'format_id': 'vid-vcodec-dot', 'ext': 'mp4', 'preference': 1, 'vcodec': 'avc1.123456', 'acodec': 'none', 'url': TEST_URL}, ] @@ -506,7 +511,6 @@ class TestYoutubeDL(unittest.TestCase): 'fps': 30, }), '^30fps$') - def test_postprocessors(self): filename = 'post-processor-testfile.mp4' audiofile = filename + '.mp3'