diff --git a/utils/CBZUtils.py b/utils/CBZUtils.py index 47a1553..5316a44 100644 --- a/utils/CBZUtils.py +++ b/utils/CBZUtils.py @@ -124,6 +124,19 @@ class CBZUtils: return True return False + @classmethod + def zip_info(cls,path,filter=False): + result = None + try: + zip_file = ZipFile(path) + result = zip_file.namelist() + if filter: + result.remove(comicInfo.COMIC_ICON_NAME+".jpg") + result.remove(comicInfo.COMIC_INFO_XML) + except Exception as e: + print(e) + return result + class verUtils: @classmethod def verNextCBZ(cls,list_img): @@ -141,7 +154,7 @@ class verUtils: else: ntfy.sendMsg(f"{comicInfo.getComicName()} {comicInfo.getChapter()} 数据不完整,尝试删除配置CBZ文件后重试") try: - if cbz_size < len(list_img) or os.path.getsize(cbz_path) < 300000: + if cbz_size < len(list_img) or os.path.getsize(cbz_path) < 3000: ntfy.sendMsg(f"删除 {cbz_path}") os.remove(cbz_path) else: