From b0d17deda131433758ad92fe604379045dc8882a Mon Sep 17 00:00:00 2001 From: sowevo Date: Wed, 13 Aug 2025 17:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=20TMDB=20=E7=9B=B8=E5=AF=B9=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E4=B8=AD=E8=A7=A3=E6=9E=90=E6=95=B0=E5=80=BC=20ID?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/themoviedb/tmdbapi.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/modules/themoviedb/tmdbapi.py b/app/modules/themoviedb/tmdbapi.py index 89f33313..66d23011 100644 --- a/app/modules/themoviedb/tmdbapi.py +++ b/app/modules/themoviedb/tmdbapi.py @@ -404,10 +404,7 @@ class TmdbApi: return int(match.group(1)) except Exception: return None - # 兜底:取最后段再取数字前缀 - last = link.rsplit("/", 1)[-1] - num_match = re.match(r"^(\d+)", last) - return int(num_match.group(1)) if num_match else None + return None @staticmethod def __get_names(tmdb_info: dict) -> List[str]: