]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[drtv] Improve preference (closes #19079)
authorSergey M․ <dstftw@gmail.com>
Thu, 31 Jan 2019 18:48:10 +0000 (01:48 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 31 Jan 2019 18:49:33 +0000 (01:49 +0700)
youtube_dl/extractor/drtv.py

index c5f21112865ea90c0c28f878036dcfd6d43e3f29..0c7e350f0b299e98a227da6fbf684f0026d4ebfe 100644 (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',