Update number_parser.py
This commit is contained in:
@@ -41,6 +41,11 @@ def get_number(debug,filepath: str) -> str:
|
||||
file_number = re.search(r'\w+-\w+', filename, re.A).group()
|
||||
return file_number
|
||||
else: # 提取不含减号-的番号,FANZA CID
|
||||
# 欧美番号匹配规则
|
||||
oumei = re.search(r'[a-zA-Z]+\.\d{2}\.\d{2}\.\d{2}', filepath)
|
||||
if oumei:
|
||||
return oumei.group()
|
||||
|
||||
try:
|
||||
return str(
|
||||
re.findall(r'(.+?)\.',
|
||||
|
||||
Reference in New Issue
Block a user