diff --git a/utils/base/BaseComicEntity.py b/utils/base/BaseComicEntity.py index f3269be..02f757e 100644 --- a/utils/base/BaseComicEntity.py +++ b/utils/base/BaseComicEntity.py @@ -119,10 +119,11 @@ class baseComic: ci.getNewIconComicChapter() #检验CBZ文件 CBZUtils.verCBZComic(cbz_file) + CBZUtils.updateOldCBZ(files_name) #不存在ComicInfo.xml则生成 if is_next and fu.notExists(ci.getPathComicInfoXML()): ci.writeComicInfoXML(chapter_name) repeat = 1 - while CBZUtils.nextCBZ() and repeat <= 10 and not CBZUtils.updateOldCBZ(files_name): + while CBZUtils.nextCBZ() and repeat <= 10: ntfy.sendMsg(f"{book_name} {chapter_name} 下载中") download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=None,timeout=8) equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img)