支持api获取状态
This commit is contained in:
parent
b9b0994f4c
commit
00190468a8
@ -27,8 +27,8 @@ def download(url):
|
|||||||
if t:
|
if t:
|
||||||
f.write(t)
|
f.write(t)
|
||||||
_size = os.path.getsize(path)
|
_size = os.path.getsize(path)
|
||||||
modifyLastDownloadStatus("Download >{}< @ {:.2f}%".format(path, 100.0 * _size/config["size"]))
|
modifyLastDownloadStatus("Download >{}< @ {:.2f}%".format(path, 100.0 * _size/config["p_s"]))
|
||||||
if _size > config["size"]:
|
if _size > config["p_s"]:
|
||||||
break
|
break
|
||||||
modifyLastDownloadStatus("Finished Download >{}<".format(path))
|
modifyLastDownloadStatus("Finished Download >{}<".format(path))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Reference in New Issue
Block a user