diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index 2cb735f..48254dc 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -62,7 +62,10 @@ def aria2c( "--max-tries", "5", "--max-file-not-found", "5", "--summary-interval", "0", - "--file-allocation", config.aria2c.get("file_allocation", "prealloc"), + "--file-allocation", [ + config.aria2c.get("file_allocation", "prealloc"), + "none" + ][segmented], "--console-log-level", "warn", "--download-result", ["hide", "default"][bool(progress)], *args,