[ie/youtube] Deprioritize IAMF formats

Authored by: bashonly
pull/13351/head
bashonly 4 months ago
parent 42fac496e0
commit 9a221819d4
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

@ -3477,8 +3477,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'width': int_or_none(fmt.get('width')),
'language': join_nonempty(language_code, 'desc' if is_descriptive else '') or None,
'language_preference': PREFERRED_LANG_VALUE if is_original else 5 if is_default else -10 if is_descriptive else -1,
# Strictly de-prioritize damaged and 3gp formats
'preference': -10 if is_damaged else -2 if itag == '17' else None,
# Strictly de-prioritize damaged, 3gp and iamf formats
'preference': -10 if is_damaged else -2 if itag in ('17', '773') else None,
}
mime_mobj = re.match(
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt.get('mimeType') or '')

Loading…
Cancel
Save