fix
This commit is contained in:
1 parent
2b47018f27
commit
936aaf1a59
2 files changed
+22
-4
No files matched your search
@@ -120,13 +120,14 @@ class baseComic:
|
||||
#检验CBZ文件
|
||||
CBZUtils.verCBZComic(cbz_file)
|
||||
CBZUtils.updateOldCBZ(files_name)
|
||||
is_next = CBZUtils.nextCBZ()
|
||||
#不存在ComicInfo.xml则生成
|
||||
if is_next and fu.notExists(ci.getPathComicInfoXML()): ci.writeComicInfoXML(chapter_name)
|
||||
repeat = 1
|
||||
while CBZUtils.nextCBZ() and repeat <= 10:
|
||||
while is_next 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")) == len(list_img)
|
||||
if not equ_next: ntfy.sendMsg(msg=f"下载数据(不完整,{int(repeat*2)}秒钟后尝试第{repeat}次",sleep=int(repeat*2))
|
||||
is_next = fu.equImages(ci.getDirComicChapter(),list_img)
|
||||
if not is_next: ntfy.sendMsg(msg=f"下载数据(不完整,{int(repeat*2)}秒钟后尝试第{repeat}次",sleep=int(repeat*2))
|
||||
repeat += 1
|
||||
return is_next
|
||||
Reference in new issue
Block a user