From 3212e5ac438d4a220d9015d1a87304bee4eaa731 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Wed, 5 Apr 2023 21:56:50 +0800 Subject: [PATCH] fix --- common/BaseComicEntity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/BaseComicEntity.py b/common/BaseComicEntity.py index 0910b8f..089837d 100644 --- a/common/BaseComicEntity.py +++ b/common/BaseComicEntity.py @@ -63,13 +63,13 @@ class baseComic: for href in chapter_href: Comic.setChapterName(chapters[cls.count_chapter]) Comic.setNumber(cls.count_chapter+1) - if fu.exists(ComicPath.getNewCBZComicChapter("file")): ciUtils.setProgressDone() #存在完成配置文件 但文件不存在 将清空完成配置文件 #if ciUtils.isProgressDone() and fu.notExists(ComicPath.getNewCBZComicChapter("file")): # ciUtils.setProgressFail() #不存在完成配置文件 则允许下载 if not ciUtils.isProgressDone(): - cls.comicChapters(href,scramble=True) + if fu.exists(ComicPath.getNewCBZComicChapter("file")): ciUtils.setProgressDone() + else: cls.comicChapters(href,scramble=True) cls.count_chapter += 1 #一本漫画下载后等待 #清空文件夹