From 09edb696ba29d2f40d92c31dbed42fb6ee044f84 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 9 Jan 2024 10:22:28 +0000 Subject: [PATCH] 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. --- devine/core/downloaders/aria2c.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index 0a5e3cf..277d341 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -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