diff --git a/resources/lib/player.py b/resources/lib/player.py index e1d8e2ac..63071e91 100644 --- a/resources/lib/player.py +++ b/resources/lib/player.py @@ -343,6 +343,6 @@ class PKC_Player(Player): LOG.info("Transcoding for %s terminating" % itemid) self.doUtils().downloadUrl( "{server}/video/:/transcode/universal/stop", - parameters={'session': window('plex_client_Id')}) + parameters={'session': v.PKC_MACHINE_IDENTIFIER}) self.played_info.clear() diff --git a/resources/lib/websocket_client.py b/resources/lib/websocket_client.py index aeb3385c..748edfc0 100644 --- a/resources/lib/websocket_client.py +++ b/resources/lib/websocket_client.py @@ -14,6 +14,7 @@ from xbmc import sleep from utils import window, settings, thread_methods from companion import process_command import state +import variables as v ############################################################################### @@ -238,10 +239,9 @@ class Alexa_Websocket(WebSocket): __thread_suspended = False def getUri(self): - self.plex_client_Id = window('plex_client_Id') uri = ('wss://pubsub.plex.tv/sub/websockets/%s/%s?X-Plex-Token=%s' % (state.PLEX_USER_ID, - self.plex_client_Id, state.PLEX_TOKEN)) + v.PKC_MACHINE_IDENTIFIER, state.PLEX_TOKEN)) sslopt = {} log.debug("%s: Uri: %s, sslopt: %s" % (self.__class__.__name__, uri, sslopt))