ghomasHudson / Jellyfin-Auto-Collections

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

error when adding some collections #10

Closed dt2i closed 1 year 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 1 year 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.