mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-18 14:08:54 +00:00
Make audio description the lowest priority
Co-Authored-By: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
@@ -128,6 +128,10 @@ class SRGSSRIE(InfoExtractor):
|
||||
'quality': q(quality),
|
||||
})
|
||||
|
||||
for idx, fmt in enumerate(formats):
|
||||
if fmt['format_id'].endswith('(AD)'):
|
||||
formats[idx]['language_preference'] = -10
|
||||
|
||||
if media_type == 'video':
|
||||
for sub in (media_data.get('subtitleList') or []):
|
||||
sub_url = sub.get('url')
|
||||
|
||||
Reference in New Issue
Block a user