[drtv] Respect preference for direct http formats (#14509)

pull/8/head
Sergey M․ 7 years ago
parent acc4ea6237
commit 83fcf19e2d
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

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

Loading…
Cancel
Save