From 8f0df03e300a58a0dcd8dfd4ebf6fc6cd788c069 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Mon, 23 Jan 2017 23:44:20 +0800 Subject: [PATCH] make aria2 quiet --- stackage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stackage.py b/stackage.py index fe483f3..985227d 100755 --- a/stackage.py +++ b/stackage.py @@ -22,7 +22,10 @@ class StackageSession(object): if file_path.is_file(): print('{} exists, skipping'.format(file_path), flush=True) else: - args = ['aria2c', url, '--dir={}'.format(dir_path)] + args = [ + 'aria2c', url, '--dir={}'.format(dir_path), + '--file-allocation=none', '--quiet=true', + ] if sha1: args.append('--checksum=sha-1={}'.format(sha1)) if subprocess.run(args).returncode != 0 and file_path.is_file():