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