From 0f436e10c420d3b45f65a254df3d1deec719629f Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 9 Jan 2023 20:50:30 +0800 Subject: [PATCH] fix --- utils/comic/ComicInfo.py | 6 +++++- utils/entity/RouMan.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/comic/ComicInfo.py b/utils/comic/ComicInfo.py index 2ad4f13..789486b 100644 --- a/utils/comic/ComicInfo.py +++ b/utils/comic/ComicInfo.py @@ -368,7 +368,11 @@ class comicInfo(): cbz = cls.nextSavePath("cbz_") done = cls.nextSavePath("done_") shutil.move(cbz,done) - + + @classmethod + def nextDoneSave(cls,data): + cls.nextSavePath("done_",data) + @classmethod def nextExistsGetPath(cls,msg): path = cls.nextSavePath(msg) diff --git a/utils/entity/RouMan.py b/utils/entity/RouMan.py index 968af8d..a086203 100644 --- a/utils/entity/RouMan.py +++ b/utils/entity/RouMan.py @@ -221,6 +221,7 @@ class comicEntity: cbz_size = 0 if len(list_img) == cbz_size: ntfy.sendMsg(f"{bookName} {chapterName} 数据完整,已跳过") + comicInfo.nextDoneSave(list_img) is_next = False else: ntfy.sendMsg(f"{bookName} {chapterName} 数据不完整,尝试删除配置CBZ文件后重试")