logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 49fe4175ae165527a0b06b8d97cdc85d83041fef
parent 9613e14a92429046b162145dfd40dee5795ca409
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri,  1 Feb 2019 01:48:10 +0700

[drtv] Improve preference (closes #19079)

Diffstat:

Myoutube_dl/extractor/drtv.py7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 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',