This commit is contained in:
caiwx86 2023-02-14 04:12:48 +08:00
parent 3870a35722
commit ff8ee7a1d6
2 changed files with 3 additions and 2 deletions

View File

@ -154,10 +154,10 @@ class verUtils:
else:
ntfy.sendMsg(f"{comicInfo.getComicName()} {comicInfo.getChapter()} 数据不完整尝试删除配置CBZ文件后重试")
try:
if cbz_size < len(list_img) or os.path.getsize(cbz_path) < 3000:
if cbz_size > len(list_img) or os.path.getsize(cbz_path) < 300000:
ntfy.sendMsg(f"删除 {cbz_path}")
os.remove(cbz_path)
comicInfo.setProgress(comicInfo.PROGRESS_DONE)
comicInfo.setProgress(comicInfo.PROGRESS_NONE)
else:
is_next = True
except:

View File

@ -12,6 +12,7 @@ class comicInfo():
PROGRESS_IMG = "download"
PROGRESS_CBZ = "cbz"
PROGRESS_DONE = "done"
PROGRESS_NONE = "none"
document = Document()
path_comic_info = None