From ac943e2e6a1c746c84be000aa167a02687e720ce Mon Sep 17 00:00:00 2001 From: txperl Date: Mon, 28 Mar 2022 14:42:57 +0800 Subject: [PATCH] fix(dl): fix logic errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 检查回调函数的逻辑错误 --- app/plugin/do/dl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/plugin/do/dl.py b/app/plugin/do/dl.py index b4fe38b..bdeda1a 100644 --- a/app/plugin/do/dl.py +++ b/app/plugin/do/dl.py @@ -219,8 +219,9 @@ def __callback_check(self, this): group_sign = this._dlArgs["@others"]["groupSign"] if group_sign == "%not_last%": return True - elif group_sign == "-1" and this.status(self.CORE.dl.mod.CODE_BAD): - self.STATIC.file.rm(this._dlSaveUri) + elif group_sign == "-1": + if this.status(self.CORE.dl.mod.CODE_BAD): + self.STATIC.file.rm(this._dlSaveUri) else: status_arr = ["running"] while "running" in status_arr: