This commit is contained in:
cwx committed 2023-02-14 07:06:12 +08:00
1 parent 91f0b17e95
commit b6c188ecc2
1 file changed
+2 -3
+2 -3
View File
@@ -123,15 +123,14 @@ class baseComic:
if os.path.exists(cbz_path): CBZUtils.verCBZComic(cbz_path) if os.path.exists(cbz_path): CBZUtils.verCBZComic(cbz_path)
is_unzip = CBZUtils.existsUnzipCBZ(files_name) is_unzip = CBZUtils.existsUnzipCBZ(files_name)
if is_next: if is_next and not os.path.exists(ci.getPathComicInfoXML()):
if not os.path.exists(ci.getPathComicInfoXML()):
#print("不存在ComicInfo.xml 生成中...") #print("不存在ComicInfo.xml 生成中...")
ci.setPages(files_name) ci.setPages(files_name)
ci.writeComicInfoXML(chapter_name) ci.writeComicInfoXML(chapter_name)
ntfy.sendMsg(f"{book_name} {chapter_name} 下载中")
is_next = CBZUtils.nextCBZ(list_img) is_next = CBZUtils.nextCBZ(list_img)
repeat = 1 repeat = 1
while is_next and repeat <= 2 and not is_unzip: while is_next and repeat <= 2 and not is_unzip:
ntfy.sendMsg(f"{book_name} {chapter_name} 下载中")
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=10,timeout=60) download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=10,timeout=60)
equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img) equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img)
if not equ_next: if not equ_next: