Update aria2_download.py (#172)
This commit is contained in:
parent
cbec19a94e
commit
1a6b87dd58
|
|
@ -40,10 +40,8 @@ class AriaDownloadHelper(DownloadHelper):
|
||||||
|
|
||||||
if TORRENT_DIRECT_LIMIT is not None:
|
if TORRENT_DIRECT_LIMIT is not None:
|
||||||
LOGGER.info(f"Checking File/Folder Size...")
|
LOGGER.info(f"Checking File/Folder Size...")
|
||||||
with download_dict_lock:
|
sleep(1.5)
|
||||||
for down in list(download_dict.values()):
|
size = aria2.get_download(gid).total_length
|
||||||
sleep(1)
|
|
||||||
size = down.size_raw()
|
|
||||||
limit = TORRENT_DIRECT_LIMIT
|
limit = TORRENT_DIRECT_LIMIT
|
||||||
limit = limit.split(' ', maxsplit=1)
|
limit = limit.split(' ', maxsplit=1)
|
||||||
limitint = int(limit[0])
|
limitint = int(limit[0])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue