fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user