mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
gh-rel: bugfix
This commit is contained in:
parent
ed075641e9
commit
ab221923e0
@ -87,12 +87,12 @@ def downloading_worker(q):
|
|||||||
if item is None:
|
if item is None:
|
||||||
break
|
break
|
||||||
|
|
||||||
url, dst_file, working_dir, updated = item
|
url, dst_file, working_dir, updated, remote_size = item
|
||||||
|
|
||||||
print("downloading", url, "to",
|
print("downloading", url, "to",
|
||||||
dst_file.relative_to(working_dir), flush=True)
|
dst_file.relative_to(working_dir), flush=True)
|
||||||
try:
|
try:
|
||||||
do_download(url, dst_file, updated)
|
do_download(url, dst_file, updated, remote_size)
|
||||||
except Exception:
|
except Exception:
|
||||||
print("Failed to download", url, flush=True)
|
print("Failed to download", url, flush=True)
|
||||||
if dst_file.is_file():
|
if dst_file.is_file():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user