|
|
|
@ -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',
|
|
|
|
@ -428,7 +431,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|
|
|
|
elif len(s) == 83:
|
|
|
|
|
return s[81:64:-1] + s[82] + s[63:52:-1] + s[45] + s[51:45:-1] + s[1] + s[44:1:-1] + s[0]
|
|
|
|
|
elif len(s) == 82:
|
|
|
|
|
return s[36] + s[79:67:-1] + s[81] + s[66:40:-1] + s[33] + s[39:36:-1] + s[40] + s[35] + s[0] + s[67] + s[32:0:-1] + s[34]
|
|
|
|
|
return s[1:19] + s[0] + s[20:68] + s[19] + s[69:82]
|
|
|
|
|
elif len(s) == 81:
|
|
|
|
|
return s[56] + s[79:56:-1] + s[41] + s[55:41:-1] + s[80] + s[40:34:-1] + s[0] + s[33:29:-1] + s[34] + s[28:9:-1] + s[29] + s[8:0:-1] + s[9]
|
|
|
|
|
elif len(s) == 79:
|
|
|
|
|