fix #202
This commit is contained in:
parent
75bd4d4b77
commit
4135df693c
@ -353,12 +353,13 @@ class TmdbHelper:
|
|||||||
else:
|
else:
|
||||||
# 匹配标题、原标题
|
# 匹配标题、原标题
|
||||||
for tv in tvs:
|
for tv in tvs:
|
||||||
|
# 获取别名
|
||||||
if (self.__compare_names(name, tv.get('name'))
|
if (self.__compare_names(name, tv.get('name'))
|
||||||
or self.__compare_names(name, tv.get('original_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)):
|
and (tv.get('first_air_date') and tv.get('first_air_date')[0:4] == str(season_year)):
|
||||||
return tv
|
return tv
|
||||||
|
|
||||||
# 匹配别名、译名
|
# 匹配别名、译名
|
||||||
for tv in tvs[:5]:
|
|
||||||
if not tv.get("names"):
|
if not tv.get("names"):
|
||||||
tv = self.get_info(mtype=MediaType.TV, tmdbid=tv.get("id"))
|
tv = self.get_info(mtype=MediaType.TV, tmdbid=tv.get("id"))
|
||||||
if not tv or not self.__compare_names(name, tv.get("names")):
|
if not tv or not self.__compare_names(name, tv.get("names")):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user