mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
[youtube] Further de-prioritize 3gp format
This commit is contained in:
parent
08d30158ec
commit
a405b38f20
1 changed files with 2 additions and 1 deletions
|
@ -3115,7 +3115,8 @@ def _extract_formats(self, streaming_data, video_id, player_url, is_live):
|
|||
'language': join_nonempty(audio_track.get('id', '').split('.')[0],
|
||||
'desc' if language_preference < -1 else ''),
|
||||
'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(
|
||||
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt.get('mimeType') or '')
|
||||
|
|
Loading…
Reference in a new issue