X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_YoutubeDL.py;h=ca25025e23a1eb1fd82eed39a534072bffe293ac;hb=4a5a67ca2503165fc4b7c2ca9c881b79101245b5;hp=efbee3b711b046f62fbb486375486a9e558e5035;hpb=e0dccdd39886c8cda1dddde0d5f5f5a2dcd33746;p=youtube-dl diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index efbee3b71..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}, ]