Skip to content

Commit

Permalink
Merge pull request #45 from soehlert/hotfix/art
Browse files Browse the repository at this point in the history
fix(art): Fix how we access vars for plex artwork in particular
  • Loading branch information
soehlert authored Jan 20, 2025
2 parents 19785c4 + 135f67b commit 2e82fe3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/services/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@ def fetch_art(item_id: int, item_type: str):
raise HTTPException(status_code=404, detail=f"No image available for this {item_type}.")

# Get the server URL and token from the established connection
server_url = plex.baseurl
token = plex.token
# ruff: noqa: SLF001
server_url = plex._baseurl
# ruff: noqa: SLF001
token = plex._token
image_url = f"{server_url}{item.thumb}?X-Plex-Token={token}"

# ruff: noqa: S501
Expand Down

0 comments on commit 2e82fe3

Please # to comment.