mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-27 09:00:28 +08:00
fix(media): fall back to main season poster (#6184)
This commit is contained in:
@@ -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"),
|
||||
))
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
APP_VERSION = 'v2.15.0'
|
||||
FRONTEND_VERSION = 'v2.15.0'
|
||||
APP_VERSION = 'v2.15.1'
|
||||
FRONTEND_VERSION = 'v2.15.1'
|
||||
|
||||
Reference in New Issue
Block a user