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:
1d043b9
)
add support for download YouTube 3d format of 3d content
author
Allan Zhou
<allanzp@gmail.com>
Thu, 1 Aug 2013 17:47:48 +0000
(10:47 -0700)
committer
Allan Zhou
<allanzp@gmail.com>
Thu, 1 Aug 2013 17:47:48 +0000
(10:47 -0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 7c3a59618905203a12af9742b54ad9b645fed1f1..c08387c273c48017803384b49fbe0ffa03344cfa 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-155,9
+155,11
@@
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',
# 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',
]
_available_formats_prefer_free = ['38', '46', '37', '45', '22', '44', '35', '43', '34', '18', '6', '5', '17', '13',
'95', '94', '93', '92', '132', '151',
]
_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',
]
_video_extensions = {
'13': '3gp',
]
_video_extensions = {
'13': '3gp',
@@
-171,6
+173,15
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
'45': 'webm',
'46': 'webm',
'45': 'webm',
'46': 'webm',
+ # 3d videos
+ '82': 'mp4',
+ '83': 'mp4',
+ '84': 'mp4',
+ '85': 'mp4',
+ '100': 'webm',
+ '101': 'webm',
+ '102': 'webm',
+
# videos that use m3u8
'92': 'mp4',
'93': 'mp4',
# videos that use m3u8
'92': 'mp4',
'93': 'mp4',
@@
-195,11
+206,18
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
'44': '480x854',
'45': '720x1280',
'46': '1080x1920',
'44': '480x854',
'45': '720x1280',
'46': '1080x1920',
+ '82': '360p',
+ '83': '480p',
+ '84': '720p',
+ '85': '1080p',
'92': '240p',
'93': '360p',
'94': '480p',
'95': '720p',
'96': '1080p',
'92': '240p',
'93': '360p',
'94': '480p',
'95': '720p',
'96': '1080p',
+ '100': '360p',
+ '101': '480p',
+ '102': '720p',
'132': '240p',
'151': '72p',
}
'132': '240p',
'151': '72p',
}