diff --git a/utils/CBZUtils.py b/utils/CBZUtils.py index f2be460..a410104 100644 --- a/utils/CBZUtils.py +++ b/utils/CBZUtils.py @@ -127,9 +127,10 @@ class CBZUtils: return True else: try: - print(f"文件删除中:{path}") - os.remove(path) - comicInfo.setProgress(comicInfo.PROGRESS_NONE) + if len(cls.zip_info(path)) < len(list_img) or os.path.getsize(path) < 300000: + print(f"文件删除中:{path}") + os.remove(path) + comicInfo.setProgress(comicInfo.PROGRESS_NONE) except Exception as e: print(e) return False diff --git a/utils/base/BaseComicEntity.py b/utils/base/BaseComicEntity.py index 8e7550e..2e48b9d 100644 --- a/utils/base/BaseComicEntity.py +++ b/utils/base/BaseComicEntity.py @@ -55,6 +55,8 @@ class baseComic: #存在就校验CBZ包是否完整 #if ci.nextExistsGetPath("done_"): # verUtils.verCBZ() + if ci.isProgress(ci.PROGRESS_DONE): + CBZUtils.verCBZComic() cls.count_chapter += 1 #一本漫画下载后等待 #清空文件夹