From 8314fc299dfb297e95649caac62db015ded8f7f8 Mon Sep 17 00:00:00 2001 From: ClosedPort22 <44864697+ClosedPort22@users.noreply.github.com> Date: Fri, 28 Jun 2024 09:35:44 +0800 Subject: [PATCH] [abc:iview] deprioritize audio description tracks --- yt_dlp/extractor/abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yt_dlp/extractor/abc.py b/yt_dlp/extractor/abc.py index 65b7d60106..6e4bf17967 100644 --- a/yt_dlp/extractor/abc.py +++ b/yt_dlp/extractor/abc.py @@ -341,6 +341,11 @@ class ABCIViewIE(InfoExtractor): formats.extend(fmts) break + # deprioritize audio description tracks + for f in formats: + if 'description' in (f.get('format_note') or '').lower(): + f['language_preference'] = -10 + subtitles = {} if src_vtt := traverse_obj(stream, ('captions', 'src-vtt', {url_or_none})): subtitles['en'] = [{