diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-02-01 01:48:10 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-02-01 01:49:33 +0700 |
commit | 49fe4175ae165527a0b06b8d97cdc85d83041fef (patch) | |
tree | 706d6acd531d008978c4685bb5b8ef3c5cc90c6b /youtube_dl/extractor/drtv.py | |
parent | 9613e14a92429046b162145dfd40dee5795ca409 (diff) |
[drtv] Improve preference (closes #19079)
Diffstat (limited to 'youtube_dl/extractor/drtv.py')
-rw-r--r-- | youtube_dl/extractor/drtv.py | 7 |
1 files changed, 5 insertions, 2 deletions
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', |