diff --git a/resources/lib/PlexCompanion.py b/resources/lib/PlexCompanion.py index 27e9e82f..92dd5f1d 100644 --- a/resources/lib/PlexCompanion.py +++ b/resources/lib/PlexCompanion.py @@ -9,7 +9,7 @@ from xbmc import sleep from utils import settings, ThreadMethodsAdditionalSuspend, ThreadMethods from plexbmchelper import listener, plexgdm, subscribers, functions, \ httppersist, plexsettings -from PlexFunctions import ParseContainerKey +from PlexFunctions import ParseContainerKey, KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE import player from entrypoint import Plex_Node @@ -95,7 +95,7 @@ class PlexCompanion(Thread): log.error("Traceback:\n%s" % traceback.format_exc()) return playqueue = self.mgr.playqueue.get_playqueue_from_type( - data['type']) + KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE[data['type']]) self.mgr.playqueue.update_playqueue_from_PMS( playqueue, ID, diff --git a/resources/lib/PlexFunctions.py b/resources/lib/PlexFunctions.py index c998740a..a6595932 100644 --- a/resources/lib/PlexFunctions.py +++ b/resources/lib/PlexFunctions.py @@ -30,7 +30,7 @@ PLEX_TYPE_EPISODE = 'episode' PLEX_TYPE_SEASON = 'season' PLEX_TYPE_SHOW = 'show' -PLEX_TYPE_AUDIO = 'audio' +PLEX_TYPE_AUDIO = 'music' PLEX_TYPE_SONG = 'track' PLEX_TYPE_ALBUM = 'album' PLEX_TYPE_ARTIST = 'artist' @@ -115,7 +115,8 @@ KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE = { PLEX_TYPE_CLIP: KODI_TYPE_VIDEO, PLEX_TYPE_ARTIST: KODI_TYPE_AUDIO, PLEX_TYPE_ALBUM: KODI_TYPE_AUDIO, - PLEX_TYPE_SONG: KODI_TYPE_AUDIO + PLEX_TYPE_SONG: KODI_TYPE_AUDIO, + PLEX_TYPE_AUDIO: KODI_TYPE_AUDIO }