This commit is contained in:
caiwx86 2023-02-14 07:01:55 +08:00
parent f5b883f736
commit 91f0b17e95

View File

@ -121,6 +121,8 @@ class baseComic:
#更新Icon
ci.getNewIconComicChapter()
if os.path.exists(cbz_path): CBZUtils.verCBZComic(cbz_path)
is_unzip = CBZUtils.existsUnzipCBZ(files_name)
if is_next:
if not os.path.exists(ci.getPathComicInfoXML()):
#print("不存在ComicInfo.xml 生成中...")
@ -128,7 +130,6 @@ class baseComic:
ci.writeComicInfoXML(chapter_name)
ntfy.sendMsg(f"{book_name} {chapter_name} 下载中")
is_next = CBZUtils.nextCBZ(list_img)
is_unzip = CBZUtils.existsUnzipCBZ(files_name)
repeat = 1
while is_next and repeat <= 2 and not is_unzip:
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=10,timeout=60)