fix 自定义识别词的媒体type正则bug

This commit is contained in:
林晓昱
2023-12-10 11:34:39 +08:00
parent a317c35eab
commit eb66cf7aad

View File

@ -120,7 +120,7 @@ def find_metainfo(title: str) -> Tuple[str, dict]:
if doubanid and doubanid[0].isdigit():
metainfo['doubanid'] = doubanid[0]
# 查找媒体类型
mtype = re.findall(r'(?<=type=)\d+', result)
mtype = re.findall(r'(?<=type=)\w+', result)
if mtype:
match mtype[0]:
case "movie":