diff --git a/utils/entity/BaseComicEntity.py b/utils/entity/BaseComicEntity.py index 4401d60..456b907 100644 --- a/utils/entity/BaseComicEntity.py +++ b/utils/entity/BaseComicEntity.py @@ -38,13 +38,18 @@ class baseComic: comicInfo.setChapterIndex(chapter_index) comicInfo.setChapterName(chapter) cbz_path = comicInfo.getNewCBZComicChapter("file") - comicInfo.getNewIconComicChapter() + icon_path = comicInfo.getNewIconComicChapter("file") CBZUtils.replaceZip(cbz_path) if comicInfo.nextExistsGetPath("done_") and not os.path.exists(cbz_path): comicInfo.nextExistsGetPath("done_",remove=True) if not os.path.exists(cbz_path): comicInfo.updateComicDate("0") return comic_href + else: + cover_icon_path = os.path.join(comicInfo.getDirConfComic(),"cover.jpg") + if not os.path.exists(icon_path) and os.path.exists(cover_icon_path): + shutil.copy(cover_icon_path,icon_path) + print(f"{cover_icon_path} copy 至:{icon_path}") chapter_index = chapter_index + 1 return None