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:
rlaphoenix 2024-01-09 10:22:28 +00:00
parent a7bbac7bcc
commit 09edb696ba
1 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ async def aria2c(
async with start_pproxy(proxy) as pproxy_: async with start_pproxy(proxy) as pproxy_:
return await aria2c(uri, out, headers, cookies, pproxy_, silent, segmented, progress, *args) return await aria2c(uri, out, headers, cookies, pproxy_, silent, segmented, progress, *args)
max_concurrent_downloads = int(config.aria2c.get("max_concurrent_downloads", 16)) max_concurrent_downloads = int(config.aria2c.get("max_concurrent_downloads", 5))
max_connection_per_server = int(config.aria2c.get("max_connection_per_server", 16)) max_connection_per_server = int(config.aria2c.get("max_connection_per_server", 1))
split = int(config.aria2c.get("split", 16)) split = int(config.aria2c.get("split", 5))
file_allocation = config.aria2c.get("file_allocation", "prealloc") file_allocation = config.aria2c.get("file_allocation", "prealloc")
if segmented: if segmented:
split = 1 split = 1