This commit is contained in:
caiwx86 2023-01-09 21:40:57 +08:00
parent 3ae2d89367
commit c3d1e96c46

View File

@ -109,7 +109,7 @@ class comicEntity:
@classmethod
def comicChapter(cls,chapter_url,scramble=None,sleep=None):
is_next = True
try:
#try:
is_next = cls.Onechapter(chapter_url,scramble)
#进入下个阶段
if comicInfo.nextExistsGetPath("down_"):
@ -124,11 +124,10 @@ class comicEntity:
remove_path = comicInfo.getDirComicChapter()
shutil.rmtree(remove_path)
print(f"文件已删除: {remove_path}")
except Exception as e:
print(e)
time.sleep(5)
ntfy.sendMsg(f"{comicInfo.getComicName()} 下载出错了")
is_next = False
#except Exception as e:
# print(e)
# 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} 秒后开始下载下一个章节")