From 9d2a49a41b2424ff199d2bb282b2b77c441fb902 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 16 Jan 2023 03:17:28 +0800 Subject: [PATCH] fix --- utils/CBZUtils.py | 2 +- utils/entity/BaseComicEntity.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/CBZUtils.py b/utils/CBZUtils.py index f402eda..16e872d 100644 --- a/utils/CBZUtils.py +++ b/utils/CBZUtils.py @@ -98,7 +98,7 @@ class CBZUtils: str_ctime = datetime.fromtimestamp(int(ctime)) file_ctime = str(str_ctime.year)+"{:0>2d}".format(str_ctime.month)+"{:0>2d}".format(str_ctime.day)+"{:0>2d}".format(str_ctime.hour) c_ctime = 2023011603 - if int(file_ctime) < c_ctime: + if int(file_ctime) > c_ctime: return None else: return None diff --git a/utils/entity/BaseComicEntity.py b/utils/entity/BaseComicEntity.py index ff4ffa1..d1a268b 100644 --- a/utils/entity/BaseComicEntity.py +++ b/utils/entity/BaseComicEntity.py @@ -37,7 +37,7 @@ class baseComic: for chapter in chapters: comicInfo.setChapterIndex(chapter_index) comicInfo.setChapterName(chapter) - cbz_path = comicInfo.getNewCBZComicChapter()+".CBZ" + cbz_path = comicInfo.getNewCBZComicChapter("file") comicInfo.getNewIconComicChapter() CBZUtils.replaceZip(cbz_path) chapter_index = chapter_index + 1