mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
make aria2 quiet
This commit is contained in:
parent
d96f7e5cf0
commit
8f0df03e30
@ -22,7 +22,10 @@ class StackageSession(object):
|
|||||||
if file_path.is_file():
|
if file_path.is_file():
|
||||||
print('{} exists, skipping'.format(file_path), flush=True)
|
print('{} exists, skipping'.format(file_path), flush=True)
|
||||||
else:
|
else:
|
||||||
args = ['aria2c', url, '--dir={}'.format(dir_path)]
|
args = [
|
||||||
|
'aria2c', url, '--dir={}'.format(dir_path),
|
||||||
|
'--file-allocation=none', '--quiet=true',
|
||||||
|
]
|
||||||
if sha1:
|
if sha1:
|
||||||
args.append('--checksum=sha-1={}'.format(sha1))
|
args.append('--checksum=sha-1={}'.format(sha1))
|
||||||
if subprocess.run(args).returncode != 0 and file_path.is_file():
|
if subprocess.run(args).returncode != 0 and file_path.is_file():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user