forked from DRMTalks/devine
Don't pre-allocate file-space for segmented downloads
This commit is contained in:
parent
a3efadf00b
commit
d964dde4d5
|
@ -62,7 +62,10 @@ def aria2c(
|
||||||
"--max-tries", "5",
|
"--max-tries", "5",
|
||||||
"--max-file-not-found", "5",
|
"--max-file-not-found", "5",
|
||||||
"--summary-interval", "0",
|
"--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",
|
"--console-log-level", "warn",
|
||||||
"--download-result", ["hide", "default"][bool(progress)],
|
"--download-result", ["hide", "default"][bool(progress)],
|
||||||
*args,
|
*args,
|
||||||
|
|
Loading…
Reference in New Issue