This commit is contained in:
caiwx86 2022-12-21 01:09:45 +08:00
parent 86e1bc6796
commit 41a63326fa

View File

@ -125,10 +125,7 @@ class comicEntity:
shutil.rmtree(remove_path)
print(f"文件已删除: {remove_path}")
except:
dirComicChapter = str(comicInfo.getDirComicChapter())
if dirComicChapter != None and os.path.exists(dirComicChapter):
shutil.rmtree(dirComicChapter)
cls.comicChapter(chapter_url,scramble,sleep)
ntfy.sendMsg(f"{comicInfo.getComicName} 下载出错了")
ntfy.sendMsg(f"预计总章节大小:{cls.count_chapter + 1} / "+ str(comicInfo.getLenChapters()))
if sleep != None and is_next == True:
ntfy.sendMsg(f"{sleep} 秒后开始下载下一个章节")