1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 20:12:51 +08:00

[drtv] Improve preference (closes #19079)

This commit is contained in:
Sergey M․ 2019-02-01 01:48:10 +07:00
parent 9613e14a92
commit 49fe4175ae
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -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',