Add japanese title parser

This commit is contained in:
yoshiko2
2022-05-21 23:38:01 +08:00
parent 8ed0aa68d7
commit 6f0ea5b76c

View File

@@ -43,7 +43,7 @@ def get_number(debug: bool, file_path: str) -> str:
file_number = get_number_by_dict(filepath)
if file_number:
return file_number
elif '字幕组' in filepath or 'SUB' in filepath.upper():
elif '字幕组' in filepath or 'SUB' in filepath.upper() or re.match(r'[\u30a0-\u30ff]+', filepath):
filepath = G_spat.sub("", filepath)
filepath = re.sub("\[.*?\]","",filepath)
filepath = filepath.replace(".chs", "").replace(".cht", "")