aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-08-22 19:45:24 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-08-22 19:45:24 +0200
commit939fbd26ac90ce22d872d111360b63163dda5dc9 (patch)
tree448080857b9a4c76780952105760d1d4f310ec13 /youtube_dl/extractor/youtube.py
parente6ddb4e7af057bb63ad85c0677635879b377a5de (diff)
[youtube] fix the order of DASH formats
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 7d6d07b17..c539b6891 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -155,19 +155,22 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
# Listed in order of quality
_available_formats = ['38', '37', '46', '22', '45', '35', '44', '34', '18', '43', '6', '5', '17', '13',
'95', '94', '93', '92', '132', '151',
- '85', '84', '102', '83', '101', '82', '100', # 3D
- '138', '137', '136', '135', '134', '133', '160', # Dash video mp4
- '141', '140', '139', # Dash auido mp4
- '248', '247', '246', '245', '244', '243', '242', # Dash video webm
- '172', '171', # Dash audio webm
+ # 3D
+ '85', '84', '102', '83', '101', '82', '100',
+ # Dash video
+ '138', '137', '248', '136', '247', '135', '246',
+ '245', '244', '134', '243', '133', '242', '160',
+ # Dash audio
+ '141', '172', '140', '171', '139',
]
_available_formats_prefer_free = ['38', '46', '37', '45', '22', '44', '35', '43', '34', '18', '6', '5', '17', '13',
'95', '94', '93', '92', '132', '151',
'85', '102', '84', '101', '83', '100', '82',
- '248', '247', '246', '245', '244', '243', '242', # Dash video webm
- '172', '171', # Dash audio webm
- '138', '137', '136', '135', '134', '133', '160', # Dash video mp4
- '141', '140', '139', # Dash auido mp4
+ # Dash video
+ '138', '248', '137', '247', '136', '246', '245',
+ '244', '135', '243', '134', '242', '133', '160',
+ # Dash audio
+ '172', '141', '171', '140', '139',
]
_video_extensions = {
'13': '3gp',