luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
366 stars 19 forks source link

[BUG] KeyError: 'season' #163

Closed johanruda closed 3 months ago

johanruda commented 3 months ago

Hello hello!

Started getting this a while back. Probably errors out after some Plex update.

2024-04-11 19:55:23 [INFO]: Cleaning Server 2 Watched 2024-04-11 19:55:23 [INFO]: Skipping show_output_dict 2024-04-11 19:55:23 [INFO]: Skipping episode_output_dict 2024-04-11 19:55:23 [INFO]: Skipping movies_output_dict failed 2024-04-11 19:55:23 [INFO]: Skipping movies_output_dict failed 2024-04-11 19:55:23 [INFO]: Skipping show_output_dict 2024-04-11 19:55:23 [INFO]: Skipping episode_output_dict 2024-04-11 19:55:23 [INFO]: Skipping show_output_dict 2024-04-11 19:55:23 [INFO]: Skipping episode_output_dict 2024-04-11 19:55:23 [ERROR]: 'season' 2024-04-11 19:55:23 [ERROR]: Traceback (most recent call last): 2024-04-11 19:55:23 File "/app/src/main.py", line 394, in main 2024-04-11 19:55:23 main_loop() 2024-04-11 19:55:23 File "/app/src/main.py", line 355, in main_loop 2024-04-11 19:55:23 server_2_watched_filtered = cleanup_watched( 2024-04-11 19:55:23 ^^^^^^^^^^^^^^^^ 2024-04-11 19:55:23 File "/app/src/watched.py", line 129, in cleanup_watched 2024-04-11 19:55:23 filter_episode_watched_list_2_keys_dict( 2024-04-11 19:55:23 File "/app/src/watched.py", line 243, in filter_episode_watched_list_2_keys_dict 2024-04-11 19:55:23 episode_watched_list_2_keys_dict["season"] 2024-04-11 19:55:23 ~~~~~~~~^^^^^^^^^^ 2024-04-11 19:55:23 KeyError: 'season' 2024-04-11 19:55:23 2024-04-11 19:55:23 Retrying in 300.0

AaronNybo commented 3 months ago

I am getting the same. Wonder if there any ideas out there for a quick fix?

luigi311 commented 3 months ago

can you guys try the dev image, i think i got it fixed there

gaming09 commented 3 months ago

can you guys try the dev image, i think i got it fixed there

switched to luigi311/jellyplex-watched:dev

Seems to have resolved the issue, will you be publishing to "latest" or waiting for a newer revision ?

johanruda commented 3 months ago

Yep, that fixed it for me too. Thank you so much! :)

luigi311 commented 3 months ago

I have merged it up to latest. Glad its working for you guys now