From 00190468a8afc65c3fd4e0706d8aba0f39eb3a7e Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Sun, 7 Apr 2019 15:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81api=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liveDownloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liveDownloader.py b/liveDownloader.py index 9f324b7..a27679b 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -27,8 +27,8 @@ def download(url): if t: f.write(t) _size = os.path.getsize(path) - modifyLastDownloadStatus("Download >{}< @ {:.2f}%".format(path, 100.0 * _size/config["size"])) - if _size > config["size"]: + modifyLastDownloadStatus("Download >{}< @ {:.2f}%".format(path, 100.0 * _size/config["p_s"])) + if _size > config["p_s"]: break modifyLastDownloadStatus("Finished Download >{}<".format(path)) except Exception as e: