This commit is contained in:
caiwx86 2023-04-07 08:54:29 +08:00
parent c2100100b5
commit ab6ea5b476
2 changed files with 7 additions and 3 deletions

View File

@ -137,7 +137,9 @@ class ComicPath:
def getPathCBZComicChapterIcon(cls,suffix="jpg",mkdir=True): return cls.setDirCBZ([Comic.getComicName(),Comic.getChapterName()],suffix=suffix,mkdir=mkdir)
#旧版本漫画章节CBZ路径
@classmethod
def getPathOldCBZComicChapter(cls): return cls.setDirOld([Comic.getOriginComicName(),Comic.getOriginChapterName()],suffix="CBZ")
def getPathOldOriginCBZComicChapter(cls): return cls.setDirOld([Comic.getOriginComicName(),Comic.getOriginChapterName()],suffix="CBZ")
@classmethod
def getPathOldCBZComicChapter(cls): return cls.setDirOld([Comic.getComicName(),Comic.getChapterName()],suffix="CBZ")
#排序
@classmethod
def getSortDirCBZComicChapter(cls): return cls.setDirCBZ([Comic.getComicName()],str(Comic.getNumber())+" "+Comic.getChapterName())

View File

@ -160,7 +160,9 @@ class CBZUtils:
#数据损坏则为 True
is_update = True
if filesname == None: filesname = Comic.getChapterFilesName()
old_zipfile_path = ComicPath.getPathOldCBZComicChapter()
old_zipfile_path = ComicPath.getPathOldOriginCBZComicChapter()
old_zipfile_path_two = ComicPath.getPathOldCBZComicChapter()
if not fu.exists(old_zipfile_path): old_zipfile_path = old_zipfile_path_two
#判断是否存在已下载CBZ文件
if fu.exists(old_zipfile_path) and fu.notExists(CBZUtils.getCBZ_Path()):