|
|
@ -3115,7 +3115,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|
|
|
'language': join_nonempty(audio_track.get('id', '').split('.')[0],
|
|
|
|
'language': join_nonempty(audio_track.get('id', '').split('.')[0],
|
|
|
|
'desc' if language_preference < -1 else ''),
|
|
|
|
'desc' if language_preference < -1 else ''),
|
|
|
|
'language_preference': language_preference,
|
|
|
|
'language_preference': language_preference,
|
|
|
|
'preference': -10 if is_damaged else None,
|
|
|
|
# Strictly de-prioritize damaged and 3gp formats
|
|
|
|
|
|
|
|
'preference': -10 if is_damaged else -2 if itag == '17' else None,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mime_mobj = re.match(
|
|
|
|
mime_mobj = re.match(
|
|
|
|
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt.get('mimeType') or '')
|
|
|
|
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt.get('mimeType') or '')
|
|
|
|