fix(media): fall back to main season poster (#6184)

This commit is contained in:
jxxghp
2026-07-25 07:57:27 +08:00
committed by GitHub
parent f6df6cc093
commit 6354a48405
3 changed files with 5 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ def _build_media_seasons(
episode_count=item.get("episode_count"),
name=item.get("name"),
overview=item.get("overview"),
poster_path=item.get("poster_path"),
poster_path=item.get("poster_path") or mediainfo.poster_path,
season_number=season_number,
vote_average=item.get("vote_average"),
))

View File

@@ -122,6 +122,7 @@ def test_media_seasons_builds_anilist_season_response(monkeypatch) -> None:
type=MediaType.TV,
title="Frieren",
anilist_id=154587,
poster_path="https://images.example.com/frieren.jpg",
season_info=[{
"season_number": 1,
"name": "Season 1",
@@ -146,5 +147,6 @@ def test_media_seasons_builds_anilist_season_response(monkeypatch) -> None:
assert len(result) == 1
assert result[0].season_number == 1
assert result[0].episode_count == 28
assert result[0].poster_path == media.poster_path
assert captured["source"] == "anilist"
assert captured["mediaid"] == "154587"

View File

@@ -1,2 +1,2 @@
APP_VERSION = 'v2.15.0'
FRONTEND_VERSION = 'v2.15.0'
APP_VERSION = 'v2.15.1'
FRONTEND_VERSION = 'v2.15.1'