ghomasHudson / Jellyfin-Auto-Collections

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

Error after updating to 10.9.8 #50

Closed BoHoliday closed 3 months ago

BoHoliday commented 3 months ago
2024-08-03 04:32:06.989 | INFO     | __main__:<module>:48 - Starting up
2024-08-03 04:32:06.989 | INFO     | __main__:<module>:49 - Starting initial run
2024-08-03 04:32:07.029 | INFO     | __main__:main:34 - 
2024-08-03 04:32:07.029 | INFO     | __main__:main:35 - 
2024-08-03 04:32:07.030 | INFO     | __main__:main:36 - Getting list info for plugin: imdb_chart, list id: moviemeter
Traceback (most recent call last):
  File "/app/main.py", line 50, in <module>
    main(config)
  File "/app/main.py", line 37, in main
    list_info = plugins[plugin_name].get_list(list_id, config['plugins'][plugin_name])
  File "/app/plugins/imdb_chart.py", line 30, in get_list
    release_year = movie["releaseYear"]["year"]
TypeError: 'NoneType' object is not subscriptable
ghomasHudson commented 3 months ago

Thanks for finding this - I'll update myself and fix things.

ghomasHudson commented 3 months ago

This looks like an error in the imdb list parsing not the jellyfin server version. The export functionality which the imdb plugin relied upon has changed to be a lot more complicated.

ghomasHudson commented 3 months ago

I couldn't reproduce the error - Maybe it was just a specific movie that had no release year. I've added some more error checking around this to prevent it thowing errors now.