mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-28 10:01:05 +00:00
[drtv] Respect preference for direct http formats (#14509)
This commit is contained in:
parent
acc4ea6237
commit
83fcf19e2d
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ def _real_extract(self, url):
|
||||||
'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…
Reference in a new issue