projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b0df522
)
Test codec with a dot '.' in name selection.
author
dyn888
<dyn.8.8.8+github@gmail.com>
Thu, 28 Jan 2016 14:07:33 +0000
(15:07 +0100)
committer
dyn888
<dyn.8.8.8+github@gmail.com>
Thu, 28 Jan 2016 14:07:33 +0000
(15:07 +0100)
test/test_YoutubeDL.py
patch
|
blob
|
history
diff --git
a/test/test_YoutubeDL.py
b/test/test_YoutubeDL.py
index 0caa43843ad4c8b3cf3a8bb117b8a2ec2a09f877..b53cfbe78295b2ceac0d55072efe88d9842dc856 100644
(file)
--- a/
test/test_YoutubeDL.py
+++ b/
test/test_YoutubeDL.py
@@
-221,6
+221,16
@@
class TestFormatSelection(unittest.TestCase):
downloaded = ydl.downloaded_info_dicts[0]
self.assertEqual(downloaded['format_id'], 'dash-video-low')
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},
+ ]
+ info_dict = _make_result(formats)
+
+ ydl = YDL({'format': 'bestvideo[vcodec=avc1.123456]'})
+ ydl.process_ie_result(info_dict.copy())
+ downloaded = ydl.downloaded_info_dicts[0]
+ self.assertEqual(downloaded['format_id'], 'vid-vcodec-dot')
+
def test_youtube_format_selection(self):
order = [
'38', '37', '46', '22', '45', '35', '44', '18', '34', '43', '6', '5', '36', '17', '13',
def test_youtube_format_selection(self):
order = [
'38', '37', '46', '22', '45', '35', '44', '18', '34', '43', '6', '5', '36', '17', '13',