Use variable.py's machineIdentifier
This commit is contained in:
parent
6c0ab38193
commit
d8e4093696
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue