This commit is contained in:
jxxghp
2025-08-21 09:07:28 +08:00
parent 31cca58943
commit db72fd2ef5
8 changed files with 32 additions and 31 deletions

View File

@@ -127,7 +127,7 @@ class CategoryHelper(metaclass=WeakSingleton):
continue
elif attr == "production_countries":
# 制片国家
info_values = [str(val.get("iso_3166_1")).upper() for val in info_value] # type: ignore
info_values = [str(val.get("iso_3166_1")).upper() for val in info_value] # type: ignore
else:
if isinstance(info_value, list):
info_values = [str(val).upper() for val in info_value]

View File

@@ -402,7 +402,8 @@ class TmdbApi:
if match:
try:
return int(match.group(1))
except Exception:
except Exception as err:
logger.debug(f"解析TMDBID失败{str(err)} - {traceback.format_exc()}")
return None
return None
@@ -832,7 +833,6 @@ class TmdbApi:
return None
# dict[地区:分级]
ratings = {}
results = []
if results := (tmdb_info.get("release_dates") or {}).get("results"):
"""
[