From 4135df693c24e3a5715885e61310a3d1a92ee6c7 Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 21 Aug 2023 10:41:25 +0800 Subject: [PATCH] fix #202 --- app/modules/themoviedb/tmdbapi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/modules/themoviedb/tmdbapi.py b/app/modules/themoviedb/tmdbapi.py index 76691d8d..238449cf 100644 --- a/app/modules/themoviedb/tmdbapi.py +++ b/app/modules/themoviedb/tmdbapi.py @@ -353,12 +353,13 @@ class TmdbHelper: else: # 匹配标题、原标题 for tv in tvs: + # 获取别名 if (self.__compare_names(name, tv.get('name')) or self.__compare_names(name, tv.get('original_name'))) \ and (tv.get('first_air_date') and tv.get('first_air_date')[0:4] == str(season_year)): return tv - # 匹配别名、译名 - for tv in tvs[:5]: + + # 匹配别名、译名 if not tv.get("names"): tv = self.get_info(mtype=MediaType.TV, tmdbid=tv.get("id")) if not tv or not self.__compare_names(name, tv.get("names")):