diff --git a/utils/comic/ComicInfo.py b/utils/comic/ComicInfo.py index 03748ab..8349552 100644 --- a/utils/comic/ComicInfo.py +++ b/utils/comic/ComicInfo.py @@ -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): diff --git a/utils/downloader.py b/utils/downloader.py index 7af39a3..7d2e159 100644 --- a/utils/downloader.py +++ b/utils/downloader.py @@ -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()