fix
This commit is contained in:
parent
9165f897ed
commit
8d380df060
@ -38,13 +38,18 @@ class baseComic:
|
|||||||
comicInfo.setChapterIndex(chapter_index)
|
comicInfo.setChapterIndex(chapter_index)
|
||||||
comicInfo.setChapterName(chapter)
|
comicInfo.setChapterName(chapter)
|
||||||
cbz_path = comicInfo.getNewCBZComicChapter("file")
|
cbz_path = comicInfo.getNewCBZComicChapter("file")
|
||||||
comicInfo.getNewIconComicChapter()
|
icon_path = comicInfo.getNewIconComicChapter("file")
|
||||||
CBZUtils.replaceZip(cbz_path)
|
CBZUtils.replaceZip(cbz_path)
|
||||||
if comicInfo.nextExistsGetPath("done_") and not os.path.exists(cbz_path):
|
if comicInfo.nextExistsGetPath("done_") and not os.path.exists(cbz_path):
|
||||||
comicInfo.nextExistsGetPath("done_",remove=True)
|
comicInfo.nextExistsGetPath("done_",remove=True)
|
||||||
if not os.path.exists(cbz_path):
|
if not os.path.exists(cbz_path):
|
||||||
comicInfo.updateComicDate("0")
|
comicInfo.updateComicDate("0")
|
||||||
return comic_href
|
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
|
chapter_index = chapter_index + 1
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user