From 4842347a9d3ccf729fdff09513921017b6bd50f6 Mon Sep 17 00:00:00 2001 From: Stefan Aleksovski Date: Mon, 26 Feb 2024 20:14:16 +0100 Subject: [PATCH] fix: add poster for tv show (#97) --- custom_components/trakt_tv/models/media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/trakt_tv/models/media.py b/custom_components/trakt_tv/models/media.py index 90e3077..ae866ad 100644 --- a/custom_components/trakt_tv/models/media.py +++ b/custom_components/trakt_tv/models/media.py @@ -225,6 +225,8 @@ def from_trakt(data) -> "Show": def update_common_information(self, data: Dict[str, Any]): if title := data.get("title"): self.name = title + if poster := data.get("poster_path"): + self.poster = f"https://image.tmdb.org/t/p/w500{poster}" if fanart := data.get("backdrop_path"): self.fanart = f"https://image.tmdb.org/t/p/w500{fanart}" if genres := data.get("genres"):