mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 02:45:12 +00:00
[abc:iview] deprioritize audio description tracks
This commit is contained in:
parent
d1789d4a8b
commit
8314fc299d
1 changed files with 5 additions and 0 deletions
|
@ -341,6 +341,11 @@ def tokenize_url(url, token):
|
||||||
formats.extend(fmts)
|
formats.extend(fmts)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# deprioritize audio description tracks
|
||||||
|
for f in formats:
|
||||||
|
if 'description' in (f.get('format_note') or '').lower():
|
||||||
|
f['language_preference'] = -10
|
||||||
|
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
if src_vtt := traverse_obj(stream, ('captions', 'src-vtt', {url_or_none})):
|
if src_vtt := traverse_obj(stream, ('captions', 'src-vtt', {url_or_none})):
|
||||||
subtitles['en'] = [{
|
subtitles['en'] = [{
|
||||||
|
|
Loading…
Reference in a new issue