From eb66cf7aaddbc8e326519b1fde86c4c75ab727af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=93=E6=98=B1?= <1221699004@fafu.edu.cn> Date: Sun, 10 Dec 2023 11:34:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E8=AF=8D=E7=9A=84=E5=AA=92=E4=BD=93type=E6=AD=A3?= =?UTF-8?q?=E5=88=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/metainfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/metainfo.py b/app/core/metainfo.py index 45d8f20a..8ac02b7a 100644 --- a/app/core/metainfo.py +++ b/app/core/metainfo.py @@ -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":