This commit is contained in:
cwx committed 2023-01-20 02:44:47 +08:00
1 parent 725a073072
commit b906972585
1 file changed
+5 -5
+5 -5
View File
@@ -102,7 +102,7 @@ class baseComic:
@classmethod @classmethod
def comicChapter(cls,chapter_url,scramble=None,sleep=None): def comicChapter(cls,chapter_url,scramble=None,sleep=None):
is_next = True is_next = True
#try: try:
is_next = cls.Onechapter(chapter_url,scramble) is_next = cls.Onechapter(chapter_url,scramble)
#进入下个阶段 #进入下个阶段
if comicInfo.nextExistsGetPath("down_"): if comicInfo.nextExistsGetPath("down_"):
@@ -118,10 +118,10 @@ class baseComic:
if os.path.exists(remove_path): if os.path.exists(remove_path):
shutil.rmtree(remove_path) shutil.rmtree(remove_path)
print(f"文件已删除: {remove_path}") print(f"文件已删除: {remove_path}")
#except Exception as e: except Exception as e:
# print(e) print(e)
# ntfy.sendMsg(f"{comicInfo.getComicName()} 下载出错了") ntfy.sendMsg(f"{comicInfo.getComicName()} 下载出错了")
# is_next = False is_next = False
ntfy.sendMsg(f"预计总章节大小:{cls.count_chapter + 1} / "+ str(comicInfo.getLenChapters())) ntfy.sendMsg(f"预计总章节大小:{cls.count_chapter + 1} / "+ str(comicInfo.getLenChapters()))
comicInfo.setChapterIndex(cls.count_chapter + 1) comicInfo.setChapterIndex(cls.count_chapter + 1)
if sleep != None and is_next == True: if sleep != None and is_next == True: