Update number_parser.py

This commit is contained in:
Feng4
2020-12-20 00:37:03 +08:00
committed by GitHub
parent 7af0951b82
commit c94fcd47fa

View File

@@ -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'(.+?)\.',