diff --git a/resources/lib/PlexFunctions.py b/resources/lib/PlexFunctions.py index 97d8d611..c998740a 100644 --- a/resources/lib/PlexFunctions.py +++ b/resources/lib/PlexFunctions.py @@ -83,6 +83,16 @@ ITEMTYPE_FROM_PLEXTYPE = { PLEX_TYPE_SONG: 'Music', } +ITEMTYPE_FROM_KODITYPE = { + KODI_TYPE_MOVIE: 'Movies', + KODI_TYPE_SEASON: 'TVShows', + KODI_TYPE_EPISODE: 'TVShows', + KODI_TYPE_SHOW: 'TVShows', + KODI_TYPE_ARTIST: 'Music', + KODI_TYPE_ALBUM: 'Music', + KODI_TYPE_SONG: 'Music', +} + KODITYPE_FROM_PLEXTYPE = { PLEX_TYPE_MOVIE: KODI_TYPE_MOVIE, PLEX_TYPE_EPISODE: KODI_TYPE_EPISODE, diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index fd47acb3..1d6af002 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1666,7 +1666,7 @@ class LibrarySync(Thread): # Now tell Kodi where we are for item in items: itemFkt = getattr(itemtypes, - PF.ITEMTYPE_FROM_PLEXTYPE[item['kodi_type']]) + PF.ITEMTYPE_FROM_KODITYPE[item['kodi_type']]) with itemFkt() as Fkt: Fkt.updatePlaystate(item)