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