Fix Plex Companion music playQueue startup

This commit is contained in:
tomkat83 2017-01-07 20:35:10 +01:00
parent 0a2f1bc01b
commit 234f5042a3
2 changed files with 5 additions and 4 deletions

View file

@ -9,7 +9,7 @@ from xbmc import sleep
from utils import settings, ThreadMethodsAdditionalSuspend, ThreadMethods from utils import settings, ThreadMethodsAdditionalSuspend, ThreadMethods
from plexbmchelper import listener, plexgdm, subscribers, functions, \ from plexbmchelper import listener, plexgdm, subscribers, functions, \
httppersist, plexsettings httppersist, plexsettings
from PlexFunctions import ParseContainerKey from PlexFunctions import ParseContainerKey, KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE
import player import player
from entrypoint import Plex_Node from entrypoint import Plex_Node
@ -95,7 +95,7 @@ class PlexCompanion(Thread):
log.error("Traceback:\n%s" % traceback.format_exc()) log.error("Traceback:\n%s" % traceback.format_exc())
return return
playqueue = self.mgr.playqueue.get_playqueue_from_type( 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( self.mgr.playqueue.update_playqueue_from_PMS(
playqueue, playqueue,
ID, ID,

View file

@ -30,7 +30,7 @@ PLEX_TYPE_EPISODE = 'episode'
PLEX_TYPE_SEASON = 'season' PLEX_TYPE_SEASON = 'season'
PLEX_TYPE_SHOW = 'show' PLEX_TYPE_SHOW = 'show'
PLEX_TYPE_AUDIO = 'audio' PLEX_TYPE_AUDIO = 'music'
PLEX_TYPE_SONG = 'track' PLEX_TYPE_SONG = 'track'
PLEX_TYPE_ALBUM = 'album' PLEX_TYPE_ALBUM = 'album'
PLEX_TYPE_ARTIST = 'artist' PLEX_TYPE_ARTIST = 'artist'
@ -115,7 +115,8 @@ KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE = {
PLEX_TYPE_CLIP: KODI_TYPE_VIDEO, PLEX_TYPE_CLIP: KODI_TYPE_VIDEO,
PLEX_TYPE_ARTIST: KODI_TYPE_AUDIO, PLEX_TYPE_ARTIST: KODI_TYPE_AUDIO,
PLEX_TYPE_ALBUM: 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
} }