Skip to content

Commit

Permalink
fix: add poster for tv show (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sAleksovski authored Feb 26, 2024
1 parent 2481c83 commit 4842347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/trakt_tv/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 4842347

Please sign in to comment.