Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error setting poster for a collection #11

Open
coding-blip opened this issue Nov 25, 2024 · 2 comments
Open

Error setting poster for a collection #11

coding-blip opened this issue Nov 25, 2024 · 2 comments

Comments

@coding-blip
Copy link

It seems that the collection is created properly and items are added to it as expected, but I get the below error in my logs. I originally thought it was because I had manually updated the poster for the collection previously so I completely deleted the collection and re-tried.

Collection Christmas does not exist. Will create it.

=========================================
Processing Christmas. List has 3601 IMDB IDs
.........................................................................
Added 116 new items and removed 0
Successfully created collection Christmas
Processing Christmas with 'add' in 3 batches
...
Traceback (most recent call last):
  File "/app/app.py", line 365, in <module>
    main()
    ~~~~^^
  File "/app/app.py", line 324, in main
    process_my_lists_on_mdblist()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/app.py", line 216, in process_my_lists_on_mdblist
    process_list(mdblist_list)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^
    collection_name = mdblist_list["name"]
                      ~~~~~~~~~~~~^^^^^^^^
TypeError: string indices must be integers, not 'str'
Finished 'add' with 115 items in Christmas
Error setting image for item 48108, response: <Response [500]>
Failed to set poster for Christmas.
Updated item 48108 with {'ForcedSortName': '!39498014 Christmas'}. Waiting 1 seconds.
Updated sort name for Christmas to !39498014 Christmas
=========================================

This is what I have for my config of the collection in the config.cfg file:

[Christmas]
source = https://mdblist.com/lists/cyberoxide/christmas
poster = https://www.publicdomainpictures.net/pictures/280000/velka/vintage-christmas-poster-15419982339El.jpg
frequency = 100
update_items_sort_names = False

Semi-related and possibly same issue as I got the same error I am seeing above, would it be possible to get an example of how to use a local file path for the posters? I tried the following line to mount a "posters" dir in the docker container:

- ${CONFIG_DIR}/emby-collections/posters:/posters

and then set the following in my config for the Christmas collection

poster = /posters/poster-name.ext
@cj0r
Copy link

cj0r commented Dec 5, 2024

Confirmed, I get the same errors:

Exception occurred while uploading image: Failed to parse: .....
Failed to set poster for......

This is when running local image pulls so it's not limited to online sources as the OP described.

@coding-blip
Copy link
Author

Bump on this as I am still seeing this issue in my logs. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants