forked from DRMTalks/devine
Change to safer default values for -j, -x, and -s in aria2c
The original values would cause blocks by some Services. Therefore, it is better to default to safer values. The new values match the defaults used by aria2c as listed in their docs.
This commit is contained in:
parent
a7bbac7bcc
commit
09edb696ba
|
@ -60,9 +60,9 @@ async def aria2c(
|
|||
async with start_pproxy(proxy) as pproxy_:
|
||||
return await aria2c(uri, out, headers, cookies, pproxy_, silent, segmented, progress, *args)
|
||||
|
||||
max_concurrent_downloads = int(config.aria2c.get("max_concurrent_downloads", 16))
|
||||
max_connection_per_server = int(config.aria2c.get("max_connection_per_server", 16))
|
||||
split = int(config.aria2c.get("split", 16))
|
||||
max_concurrent_downloads = int(config.aria2c.get("max_concurrent_downloads", 5))
|
||||
max_connection_per_server = int(config.aria2c.get("max_connection_per_server", 1))
|
||||
split = int(config.aria2c.get("split", 5))
|
||||
file_allocation = config.aria2c.get("file_allocation", "prealloc")
|
||||
if segmented:
|
||||
split = 1
|
||||
|
|
Loading…
Reference in New Issue