Skip to content

Commit

Permalink
fix(images): i need to use the private member in this case or all ima…
Browse files Browse the repository at this point in the history
…ges break
  • Loading branch information
soehlert committed Jan 20, 2025
1 parent 72c9b81 commit 135f67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/services/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ 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
# ruff: noqa SLF001
# ruff: noqa: SLF001
server_url = plex._baseurl
# ruff: noqa SLF001
# ruff: noqa: SLF001
token = plex._token
image_url = f"{server_url}{item.thumb}?X-Plex-Token={token}"

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ ignore = [
"SIM108", # Use ternary operator instead of `if`-`else`-block
"TRY301", # I like to raise redundant exceptions if it's coming from a different module or even far away function
"PERF401", # I think list comprehensions are usually harder to read quickly
"SLF001", # I need to use private members in this case
]

[tool.ruff.lint.mccabe]
Expand Down

0 comments on commit 135f67b

Please # to comment.