mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 09:40:30 +00:00
[aria2c] Lower --min-split-size
for HTTP downloads
This makes downloading smaller files much faster
This commit is contained in:
parent
7e067091e8
commit
ff0f78e1fe
@ -280,6 +280,8 @@ def _make_cmd(self, tmpfilename, info_dict):
|
|||||||
'--file-allocation=none', '-x16', '-j16', '-s16']
|
'--file-allocation=none', '-x16', '-j16', '-s16']
|
||||||
if 'fragments' in info_dict:
|
if 'fragments' in info_dict:
|
||||||
cmd += ['--allow-overwrite=true', '--allow-piece-length-change=true']
|
cmd += ['--allow-overwrite=true', '--allow-piece-length-change=true']
|
||||||
|
else:
|
||||||
|
cmd += ['--min-split-size', '1M']
|
||||||
|
|
||||||
if info_dict.get('http_headers') is not None:
|
if info_dict.get('http_headers') is not None:
|
||||||
for key, val in info_dict['http_headers'].items():
|
for key, val in info_dict['http_headers'].items():
|
||||||
|
Loading…
Reference in New Issue
Block a user