This commit is contained in:
caiwx86 2023-04-05 21:56:50 +08:00
parent b693943843
commit 3212e5ac43

View File

@ -63,13 +63,13 @@ class baseComic:
for href in chapter_href: for href in chapter_href:
Comic.setChapterName(chapters[cls.count_chapter]) Comic.setChapterName(chapters[cls.count_chapter])
Comic.setNumber(cls.count_chapter+1) Comic.setNumber(cls.count_chapter+1)
if fu.exists(ComicPath.getNewCBZComicChapter("file")): ciUtils.setProgressDone()
#存在完成配置文件 但文件不存在 将清空完成配置文件 #存在完成配置文件 但文件不存在 将清空完成配置文件
#if ciUtils.isProgressDone() and fu.notExists(ComicPath.getNewCBZComicChapter("file")): #if ciUtils.isProgressDone() and fu.notExists(ComicPath.getNewCBZComicChapter("file")):
# ciUtils.setProgressFail() # ciUtils.setProgressFail()
#不存在完成配置文件 则允许下载 #不存在完成配置文件 则允许下载
if not ciUtils.isProgressDone(): 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 cls.count_chapter += 1
#一本漫画下载后等待 #一本漫画下载后等待
#清空文件夹 #清空文件夹