ghomasHudson / Jellyfin-Auto-Collections

Automatically make jellyfin collections from IMDB, Letterboxd lists and more.
MIT License
60 stars 9 forks source link

error when adding some collections #10

Closed dt2i closed 11 months ago

dt2i commented 1 year ago

I get a similar error when adding some of my lists--

when adding Looney Toons golden collection ("ls090428174")

Traceback (most recent call last): File "/home/david/Downloads/Jellyfin-Auto-Collections/imdb_list.py", line 59, in params2["includeItemTypes"] = imdb_to_jellyfin_type_map[item["Title Type"]] KeyError: 'video'

when adding peanuts tv specials: ("ls025658622")

Traceback (most recent call last): File "/home/david/Downloads/Jellyfin-Auto-Collections/imdb_list.py", line 59, in params2["includeItemTypes"] = imdb_to_jellyfin_type_map[item["Title Type"]] KeyError: 'tvShort'

when adding quentin tarantino's 333 favorite movies ("ls043093231")

Traceback (most recent call last): File "/home/david/Downloads/Jellyfin-Auto-Collections/imdb_list.py", line 59, in params2["includeItemTypes"] = imdb_to_jellyfin_type_map[item["Title Type"]] KeyError: 'video'

ghomasHudson commented 11 months ago

Thanks for raising the issue, it's a little challenging as 'video' is a pretty generic media type (could be a movie or tv show). I'll add it as both but this might lead to lower matching quality.

Try it and see.