fix
This commit is contained in:
1 parent
3870a35722
commit
ff8ee7a1d6
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -154,10 +154,10 @@ class verUtils:
|
|||||||
else:
|
else:
|
||||||
ntfy.sendMsg(f"{comicInfo.getComicName()} {comicInfo.getChapter()} 数据不完整,尝试删除配置CBZ文件后重试")
|
ntfy.sendMsg(f"{comicInfo.getComicName()} {comicInfo.getChapter()} 数据不完整,尝试删除配置CBZ文件后重试")
|
||||||
try:
|
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}")
|
ntfy.sendMsg(f"删除 {cbz_path}")
|
||||||
os.remove(cbz_path)
|
os.remove(cbz_path)
|
||||||
comicInfo.setProgress(comicInfo.PROGRESS_DONE)
|
comicInfo.setProgress(comicInfo.PROGRESS_NONE)
|
||||||
else:
|
else:
|
||||||
is_next = True
|
is_next = True
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ class comicInfo():
|
|||||||
PROGRESS_IMG = "download"
|
PROGRESS_IMG = "download"
|
||||||
PROGRESS_CBZ = "cbz"
|
PROGRESS_CBZ = "cbz"
|
||||||
PROGRESS_DONE = "done"
|
PROGRESS_DONE = "done"
|
||||||
|
PROGRESS_NONE = "none"
|
||||||
|
|
||||||
document = Document()
|
document = Document()
|
||||||
path_comic_info = None
|
path_comic_info = None
|
||||||
|
|||||||
Reference in new issue
Block a user