This commit is contained in:
caiwx86 2023-01-16 21:07:01 +08:00
parent 9165f897ed
commit 8d380df060

View File

@ -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