diff --git a/app/api/endpoints/media.py b/app/api/endpoints/media.py index 3c39b613..faa001a1 100644 --- a/app/api/endpoints/media.py +++ b/app/api/endpoints/media.py @@ -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"), )) diff --git a/tests/test_search_media_sources.py b/tests/test_search_media_sources.py index 3b8b180c..c5a04249 100644 --- a/tests/test_search_media_sources.py +++ b/tests/test_search_media_sources.py @@ -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" diff --git a/version.py b/version.py index 74f4fcef..fcdb2952 100644 --- a/version.py +++ b/version.py @@ -1,2 +1,2 @@ -APP_VERSION = 'v2.15.0' -FRONTEND_VERSION = 'v2.15.0' +APP_VERSION = 'v2.15.1' +FRONTEND_VERSION = 'v2.15.1'