From: Sergey M․ Date: Thu, 31 Jan 2019 18:48:10 +0000 (+0700) Subject: [drtv] Improve preference (closes #19079) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=49fe4175ae165527a0b06b8d97cdc85d83041fef;p=youtube-dl [drtv] Improve preference (closes #19079) --- diff --git a/youtube_dl/extractor/drtv.py b/youtube_dl/extractor/drtv.py index c5f211128..0c7e350f0 100644 --- a/youtube_dl/extractor/drtv.py +++ b/youtube_dl/extractor/drtv.py @@ -171,10 +171,13 @@ class DRTVIE(InfoExtractor): continue target = link.get('Target') format_id = target or '' - preference = None - if asset_target in ('SpokenSubtitles', 'SignLanguage'): + if asset_target in ('SpokenSubtitles', 'SignLanguage', 'VisuallyInterpreted'): preference = -1 format_id += '-%s' % asset_target + elif asset_target == 'Default': + preference = 1 + else: + preference = None if target == 'HDS': f4m_formats = self._extract_f4m_formats( uri + '?hdcore=3.3.0&plugin=aasp-3.3.0.99.43',