This commit is contained in:
caiwx86 2023-04-01 12:56:44 +08:00
parent 44a4d2c28f
commit a756a1d1b8

View File

@ -66,14 +66,14 @@ class baseComic:
'''
@classmethod
def comicChapters(cls,chapter_url,scramble=None,sleep=None):
try:
cls.Onechapter(chapter_url,scramble)
#try:
cls.Onechapter(chapter_url,scramble)
#进入下个阶段
#章节图片全部下载后,调用下载封面
if ci.isProgress(ci.PROGRESS_DOWN): download_comic_icon()
if ci.isProgress(ci.PROGRESS_DOWN): download_comic_icon()
#下个阶段
if ci.isProgress(ci.PROGRESS_CBZ): is_next = CBZUtils.packAutoComicChapterCBZ()
except Exception as e: is_next = ntfy.sendMsg(f"{ci.getComicName()} 下载出错了",error=e)
if ci.isProgress(ci.PROGRESS_CBZ): is_next = CBZUtils.packAutoComicChapterCBZ()
#except Exception as e: is_next = ntfy.sendMsg(f"{ci.getComicName()} 下载出错了",error=e)
ntfy.sendMsg(f"预计总章节大小:{cls.count_chapter + 1} / "+ str(ci.getLenChapters()))
ci.setChapterIndex(cls.count_chapter + 1)
if sleep != None and is_next: ntfy.sendMsg(f"{sleep} 秒后开始下载下一个章节",sleep=sleep)