From 57a0ae6841e86c3cc8b6da2c5bddb0d8282bc8f9 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Sat, 1 Apr 2023 21:26:33 +0800 Subject: [PATCH] fix --- utils/base/BaseComicEntity.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/utils/base/BaseComicEntity.py b/utils/base/BaseComicEntity.py index 9176848..de747ce 100644 --- a/utils/base/BaseComicEntity.py +++ b/utils/base/BaseComicEntity.py @@ -123,12 +123,11 @@ class baseComic: is_old=CBZUtils.updateOldCBZ(files_name) #不存在ComicInfo.xml则生成 if is_next and fu.notExists(ci.getPathComicInfoXML()): ci.writeComicInfoXML(chapter_name) - repeat = 1 - #while is_next and repeat <= 10 and not is_old: + if is_next and not is_old: # ntfy.sendMsg(f"{book_name} {chapter_name} 下载中") - download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=None,timeout=8) + download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=None,timeout=8) # ntfy.sendMsg("等待数据检验中...",sleep=0.5) - is_next = fu.equImages(ci.getDirComicChapter(),list_img) + 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 \ No newline at end of file