This commit is contained in:
caiwx86 2023-01-15 21:14:21 +08:00
parent 1e5652744b
commit fd728724c1
2 changed files with 4 additions and 7 deletions

View File

@ -305,10 +305,10 @@ class comicInfo():
s_dir = cls.getSortDirCBZComicChapter()
c_path = cls.getDirCBZComicChapter()+su
s_path = cls.getSortDirCBZComicChapter()+su
if os.path.exists(c_path) and s_path != None:
shutil.move(c_path, s_path)
print("文件已移动至:", s_path)
return s_dir
if os.path.exists(s_path) and s_path != None:
shutil.move(s_path, c_path)
print("文件已移动至:", c_path)
return c_dir
@classmethod
def getDirComic(cls):

View File

@ -106,9 +106,6 @@ def download_comic_icon():
if not os.path.exists(pathCBZComic):
os.makedirs(pathCBZComic)
save_path = os.path.join(pathCBZComic,comicInfo.getChapter()+icon_su)
index = comicInfo.getChapterIndex()
if index != None:
save_path = os.path.join(pathCBZComic,str(index)+" "+comicInfo.getChapter()+icon_su)
shutil.copy(pathComicIcon, save_path)
print(f"{pathComicIcon} 已复制至: {save_path}")
comicInfo.nextDownloadToCBZChapter()