1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-10 03:25:13 +00:00

Fix prefer-vp9-sort compat option (#14603)

Closes #14602
Authored by: seproDev
This commit is contained in:
sepro
2025-10-12 20:30:17 +02:00
committed by GitHub
parent 87be1bb96a
commit a6673a8e82
2 changed files with 4 additions and 2 deletions

View File

@@ -4110,7 +4110,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
else 'video'),
'release_timestamp': live_start_time,
'_format_sort_fields': ( # source_preference is lower for potentially damaged formats
'quality', 'res', 'fps', 'hdr:12', 'source', 'vcodec', 'channels', 'acodec', 'lang', 'proto'),
'quality', 'res', 'fps', 'hdr:12', 'source',
'vcodec:vp9.2' if 'prefer-vp9-sort' in self.get_param('compat_opts', []) else 'vcodec',
'channels', 'acodec', 'lang', 'proto'),
}
def get_lang_code(track):