diff --git a/media/src/core/tmdb_store.py b/media/src/core/tmdb_store.py index 185e377..2de17f8 100644 --- a/media/src/core/tmdb_store.py +++ b/media/src/core/tmdb_store.py @@ -139,7 +139,8 @@ def _year_of(payload: dict) -> int | None: def season_years_from(payload: dict) -> dict[str, str]: """从 /tv/{id} 的 seasons 数组生成 {"01": "2023"}。 - 特别季 Season 00 的 air_date 通常散落各年,统一取 Season 01 的年份。 + 一律以 TMDB 各季的 air_date 为准,特别季 Season 00 也不例外 + (例如《我的三体》特别篇 2019,第一季 2014)。 """ out: dict[str, str] = {} for season in payload.get("seasons") or []: @@ -150,8 +151,6 @@ def season_years_from(payload: dict) -> dict[str, str]: air = (season.get("air_date") or "").strip() if len(air) >= 4 and air[:4].isdigit(): out[num] = air[:4] - if "00" in out and "01" in out: - out["00"] = out["01"] return out