This commit is contained in:
caiwx86 2023-04-01 14:10:09 +08:00
parent c489085ce1
commit 3bad7f3e90

View File

@ -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)