From d1483cd66839199a4b85d9015b475556d22e101f Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 16 Jan 2023 04:28:00 +0800 Subject: [PATCH] fix --- utils/comic/ComicInfo.py | 6 ++++-- utils/entity/BaseComicEntity.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/comic/ComicInfo.py b/utils/comic/ComicInfo.py index d3ac751..4d782f9 100644 --- a/utils/comic/ComicInfo.py +++ b/utils/comic/ComicInfo.py @@ -472,9 +472,11 @@ class comicInfo(): return save_path @classmethod - def updateComicDate(cls): - data = {} + def updateComicDate(cls,date=None): + data = {} update_at = cls.str_updateAt + if date != None: + update_at = date comic_name = cls.str_comicName update_path = pathStr.base_comic_update update_dir = os.path.dirname(update_path) diff --git a/utils/entity/BaseComicEntity.py b/utils/entity/BaseComicEntity.py index 04753c0..0f02e9d 100644 --- a/utils/entity/BaseComicEntity.py +++ b/utils/entity/BaseComicEntity.py @@ -42,6 +42,7 @@ class baseComic: #CBZUtils.replaceZip(cbz_path) if comicInfo.nextExistsGetPath("done_") and not os.path.exists(cbz_path): comicInfo.nextExistsGetPath("done_",remove=True) + comicInfo.updateComicDate("0") chapter_index = chapter_index + 1 return None