1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-05-06 22:09:49 +00:00

[ie/youtube] Do not strictly deprioritize missing_pot formats (#13061)

Deprioritization was redundant; they're already hidden behind an extractor-arg

Authored by: bashonly
This commit is contained in:
bashonly 2025-04-30 17:51:40 -05:00 committed by GitHub
parent 7be14109a6
commit 74fc2ae12c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3334,8 +3334,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 broken, damaged and 3gp formats
'preference': -20 if require_po_token else -10 if is_damaged else -2 if itag == '17' 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 '')