This commit is contained in:
caiwx86 2023-02-14 05:58:41 +08:00
parent 4667afe295
commit 9f343c3b09
2 changed files with 6 additions and 3 deletions

View File

@ -127,6 +127,7 @@ class CBZUtils:
return True
else:
try:
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)

View File

@ -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
#一本漫画下载后等待
#清空文件夹