[aria2c] Lower `--min-split-size` for HTTP downloads

This makes downloading smaller files much faster
This commit is contained in:
pukkandan 2021-06-20 07:55:54 +05:30
parent 7e067091e8
commit ff0f78e1fe
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,8 @@ class Aria2cFD(ExternalFD):
'--file-allocation=none', '-x16', '-j16', '-s16']
if 'fragments' in info_dict:
cmd += ['--allow-overwrite=true', '--allow-piece-length-change=true']
else:
cmd += ['--min-split-size', '1M']
if info_dict.get('http_headers') is not None:
for key, val in info_dict['http_headers'].items():