From c4c6b1a752b2ec780d5bd837d80a2cdc1f246c93 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 24 Apr 2019 13:05:59 +0800 Subject: [PATCH] fix: while set not upload ,it will not move any file to free disk space --- liveDownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liveDownloader.py b/liveDownloader.py index d53fedd..e702a85 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -77,6 +77,7 @@ def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")): Common.appendUploadStatus("Upload Daemon Starting") i = Common.uploadQueue.get() while True: + Common.doClean() if Common.forceNotUpload: Common.appendUploadStatus("设置了不上传,所以[{}]不会上传了".format(i)) i = Common.uploadQueue.get() @@ -98,7 +99,6 @@ def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")): continue if not Common.forceNotEncode: os.remove(i) - Common.doClean() i = Common.uploadQueue.get() Common.appendUploadStatus("Upload Daemon Quiting")