fix
This commit is contained in:
1 parent
1e5652744b
commit
fd728724c1
2 files changed
+4
-7
No files matched your search
@@ -305,10 +305,10 @@ class comicInfo():
|
|||||||
s_dir = cls.getSortDirCBZComicChapter()
|
s_dir = cls.getSortDirCBZComicChapter()
|
||||||
c_path = cls.getDirCBZComicChapter()+su
|
c_path = cls.getDirCBZComicChapter()+su
|
||||||
s_path = cls.getSortDirCBZComicChapter()+su
|
s_path = cls.getSortDirCBZComicChapter()+su
|
||||||
if os.path.exists(c_path) and s_path != None:
|
if os.path.exists(s_path) and s_path != None:
|
||||||
shutil.move(c_path, s_path)
|
shutil.move(s_path, c_path)
|
||||||
print("文件已移动至:", s_path)
|
print("文件已移动至:", c_path)
|
||||||
return s_dir
|
return c_dir
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getDirComic(cls):
|
def getDirComic(cls):
|
||||||
|
|||||||
@@ -106,9 +106,6 @@ def download_comic_icon():
|
|||||||
if not os.path.exists(pathCBZComic):
|
if not os.path.exists(pathCBZComic):
|
||||||
os.makedirs(pathCBZComic)
|
os.makedirs(pathCBZComic)
|
||||||
save_path = os.path.join(pathCBZComic,comicInfo.getChapter()+icon_su)
|
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)
|
shutil.copy(pathComicIcon, save_path)
|
||||||
print(f"{pathComicIcon} 已复制至: {save_path}")
|
print(f"{pathComicIcon} 已复制至: {save_path}")
|
||||||
comicInfo.nextDownloadToCBZChapter()
|
comicInfo.nextDownloadToCBZChapter()
|
||||||
|
|||||||
Reference in new issue
Block a user