1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-15 17:08:29 +00:00

[ie/youtube] Deprioritize IAMF formats

Authored by: bashonly
This commit is contained in:
bashonly 2025-05-30 18:37:37 -05:00
parent 42fac496e0
commit 9a221819d4
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -3477,8 +3477,8 @@ def build_fragments(f):
'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 '')