Fix KeyError if a new set/collection is added to Plex
This commit is contained in:
parent
2e0d11a7bb
commit
2b3366923a
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue