This commit is contained in:
cwx
2023-01-16 02:55:35 +08:00
parent 193d2d904b
commit 1b538bacea
3 changed files with 14 additions and 6 deletions
+7 -5
View File
@@ -301,15 +301,15 @@ class comicInfo():
return None
@classmethod
def getNewCBZComicChapter(cls):
return cls.getNewToComicChapter(".CBZ")
def getNewCBZComicChapter(cls,type):
return cls.getNewToComicChapter(".CBZ", type)
@classmethod
def getNewIconComicChapter(cls):
return cls.getNewToComicChapter(".jpg")
def getNewIconComicChapter(cls,type):
return cls.getNewToComicChapter(".jpg", type)
@classmethod
def getNewToComicChapter(cls,su):
def getNewToComicChapter(cls,su,type="dir"):
c_dir = cls.getDirCBZComicChapter()
s_dir = cls.getSortDirCBZComicChapter()
c_path = cls.getDirCBZComicChapter()+su
@@ -317,6 +317,8 @@ class comicInfo():
if os.path.exists(s_path) and s_path != None:
shutil.move(s_path, c_path)
print("文件已移动至:", c_path)
if type == "file":
return c_path
return c_dir
@classmethod