Skip to content

Commit

Permalink
Fixed issue with seting local posters.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjonsson committed Nov 16, 2024
1 parent 7f09396 commit 83d4559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ update_items_sort_names = False

# Example using a collection poster. Either a local path or an image URL.
# https://theposterdb.com/ and https://plexcollectionposters.com/ have a lot of great posters.
# Local paths can contain spaces and not enclosed by quotes.
[Oscars 2024]
source = https://mdblist.com/lists/squint/the-96th-academy-awards
poster = https://plexcollectionposters.com/images/2019/01/31/oscars9a7c2bc47188f883.png
Expand Down
2 changes: 1 addition & 1 deletion src/emby.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def __upload_image(self, item_id, image_path, image_type="Primary"):
image_data_base64 = base64.b64encode(image_data)

endpoint = (
f"/emby/Items/{item_id}/Images/{image_type}?api_key={self.api_key}"
f"emby/Items/{item_id}/Images/{image_type}?api_key={self.api_key}"
)
url = self.server_url + endpoint
headers = {
Expand Down

0 comments on commit 83d4559

Please sign in to comment.