[drtv] Respect preference for direct http formats (#14509)
authorSergey M․ <dstftw@gmail.com>
Sun, 15 Oct 2017 22:48:45 +0000 (05:48 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 15 Oct 2017 22:48:45 +0000 (05:48 +0700)
youtube_dl/extractor/drtv.py

index 69effba58371426ec6813066424e86aa976b9ce8..f757745ba7cf2fa500f03102d7ca2b0c932c27bc 100644 (file)
@@ -138,6 +138,7 @@ class DRTVIE(InfoExtractor):
                             'tbr': int_or_none(bitrate),
                             'ext': link.get('FileFormat'),
                             'vcodec': 'none' if kind == 'AudioResource' else None,
+                            'preference': preference,
                         })
                 subtitles_list = asset.get('SubtitlesList')
                 if isinstance(subtitles_list, list):