fix
This commit is contained in:
parent
1e5652744b
commit
fd728724c1
@ -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):
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user