16 lines
496 B
Python
16 lines
496 B
Python
from opencc import OpenCC
|
|
|
|
class ComicPath:
|
|
@classmethod
|
|
def getDirComicChapter(cls):
|
|
return None
|
|
|
|
@classmethod
|
|
def getFileScrambleImageName(cls,count,block,suffix=".jpg"): return "scramble="+str(block)+"_"+str(count)+suffix
|
|
|
|
@classmethod
|
|
def getFileScrambleImageSave(cls,file): return str(file).split("_")[-1]
|
|
|
|
#繁体中文转简体中文
|
|
@classmethod
|
|
def ChineseConvert(cls, text,convert='t2s'): return OpenCC(convert).convert(str(text)) |