From 2b3366923ae4eab17257a50e15e0b5718517aa2a Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 2 Dec 2018 13:19:13 +0100 Subject: [PATCH] Fix KeyError if a new set/collection is added to Plex --- resources/lib/variables.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/variables.py b/resources/lib/variables.py index 887477fd..1087aa96 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -366,7 +366,8 @@ PLEX_TYPE_FROM_WEBSOCKET = { 9: PLEX_TYPE_ALBUM, 10: PLEX_TYPE_SONG, 12: PLEX_TYPE_CLIP, - 15: 'playlist' + 15: 'playlist', + 18: PLEX_TYPE_SET } PLEX_TYPE_NUMBER_FROM_PLEX_TYPE = { @@ -378,7 +379,8 @@ PLEX_TYPE_NUMBER_FROM_PLEX_TYPE = { PLEX_TYPE_ALBUM: 9, PLEX_TYPE_SONG: 10, PLEX_TYPE_CLIP: 12, - 'playlist': 15 + 'playlist': 15, + PLEX_TYPE_SET: 18 }