From 975567088f33af6b7dd873eb4a827bbe698e6fba Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Thu, 22 Dec 2022 13:14:11 +0800 Subject: [PATCH] fix --- utils/entity/RouMan.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/utils/entity/RouMan.py b/utils/entity/RouMan.py index fd1247f..ae9581c 100644 --- a/utils/entity/RouMan.py +++ b/utils/entity/RouMan.py @@ -109,24 +109,23 @@ class comicEntity: @classmethod def comicChapter(cls,chapter_url,scramble=None,sleep=None): is_next = True - try: - is_next = cls.Onechapter(chapter_url,scramble) + is_next = cls.Onechapter(chapter_url,scramble) #进入下个阶段 - if comicInfo.nextExistsGetPath("down_"): + if comicInfo.nextExistsGetPath("down_"): #章节图片全部下载后,调用下载封面 - netUtils.downloadComicIcon() + netUtils.downloadComicIcon() #下个阶段 - if comicInfo.nextExistsGetPath("cbz_"): - time.sleep(1) + if comicInfo.nextExistsGetPath("cbz_"): + time.sleep(1) #下载后自动打包 - is_next = CBZUtils.packAutoComicChapterCBZ() + is_next = CBZUtils.packAutoComicChapterCBZ() #完成删除原文件 - remove_path = comicInfo.getDirComicChapter() - shutil.rmtree(remove_path) - print(f"文件已删除: {remove_path}") - except: - ntfy.sendMsg(f"{comicInfo.getComicName()} 下载出错了") - is_next = False + remove_path = comicInfo.getDirComicChapter() + shutil.rmtree(remove_path) + print(f"文件已删除: {remove_path}") + #except: + # ntfy.sendMsg(f"{comicInfo.getComicName()} 下载出错了") + # is_next = False ntfy.sendMsg(f"预计总章节大小:{cls.count_chapter + 1} / "+ str(comicInfo.getLenChapters())) if sleep != None and is_next == True: ntfy.sendMsg(f"{sleep} 秒后开始下载下一个章节")