From b70fe6c79d51dcda753982fc04947a75132bcb14 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Tue, 14 Feb 2023 04:24:45 +0800 Subject: [PATCH] fix --- utils/CBZUtils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/CBZUtils.py b/utils/CBZUtils.py index 41f8d65..7d4c333 100644 --- a/utils/CBZUtils.py +++ b/utils/CBZUtils.py @@ -63,11 +63,10 @@ class CBZUtils: else: print("文件已存在:", target_file) len_chapter_imgs = len(comicInfo.getChapterImgs()) - if len_chapter_imgs != 0 and len_chapter_imgs != cls.zip_info(target_file): + if len_chapter_imgs != 0 and len_chapter_imgs != len(cls.zip_info(target_file)): try: os.remove(target_file) comicInfo.setProgress(comicInfo.PROGRESS_NONE) - print("文件已删除:", target_file) except Exception as e: print(e) if remove: