mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 21:59:17 +00:00
[youtube] Enforce using chunked HTTP downloading for DASH formats
This commit is contained in:
parent
00c97e3e7a
commit
e4a60912b8
|
@ -1944,6 +1944,11 @@ def _extract_count(count_name):
|
||||||
break
|
break
|
||||||
if codecs:
|
if codecs:
|
||||||
dct.update(parse_codecs(codecs))
|
dct.update(parse_codecs(codecs))
|
||||||
|
if dct.get('acodec') == 'none' or dct.get('vcodec') == 'none':
|
||||||
|
dct['downloader_options'] = {
|
||||||
|
# Youtube throttles chunks >~10M
|
||||||
|
'http_chunk_size': 10485760,
|
||||||
|
}
|
||||||
formats.append(dct)
|
formats.append(dct)
|
||||||
elif video_info.get('hlsvp'):
|
elif video_info.get('hlsvp'):
|
||||||
manifest_url = video_info['hlsvp'][0]
|
manifest_url = video_info['hlsvp'][0]
|
||||||
|
|
Loading…
Reference in a new issue