From 2b47018f27bc670f3dd62542d5a167dbceda884e Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Sat, 1 Apr 2023 14:22:51 +0800 Subject: [PATCH] fix --- utils/base/BaseComicEntity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/base/BaseComicEntity.py b/utils/base/BaseComicEntity.py index 02f757e..08875fe 100644 --- a/utils/base/BaseComicEntity.py +++ b/utils/base/BaseComicEntity.py @@ -126,7 +126,7 @@ class baseComic: 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) + 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)) repeat += 1 return is_next \ No newline at end of file