Playback updates for remote PMS, part 2
This commit is contained in:
parent
20aac1d258
commit
33fe7604e3
1 changed files with 5 additions and 4 deletions
|
@ -71,8 +71,11 @@ class SubscriptionManager:
|
||||||
|
|
||||||
# pbmc_server = str(WINDOW.getProperty('plexbmc.nowplaying.server'))
|
# pbmc_server = str(WINDOW.getProperty('plexbmc.nowplaying.server'))
|
||||||
# userId = str(WINDOW.getProperty('currUserId'))
|
# userId = str(WINDOW.getProperty('currUserId'))
|
||||||
# pbmc_server = str(WINDOW.getProperty('pms_server'))
|
pbmc_server = WINDOW.getProperty('pms_server')
|
||||||
pbmc_server = None
|
if pbmc_server:
|
||||||
|
(self.protocol, self.server, self.port) = \
|
||||||
|
pbmc_server.split(':')
|
||||||
|
self.server = self.server.replace('/', '')
|
||||||
keyid = None
|
keyid = None
|
||||||
count = 0
|
count = 0
|
||||||
while not keyid:
|
while not keyid:
|
||||||
|
@ -87,8 +90,6 @@ class SubscriptionManager:
|
||||||
ret += ' location="%s"' % (self.mainlocation)
|
ret += ' location="%s"' % (self.mainlocation)
|
||||||
ret += ' key="%s"' % (self.lastkey)
|
ret += ' key="%s"' % (self.lastkey)
|
||||||
ret += ' ratingKey="%s"' % (self.lastratingkey)
|
ret += ' ratingKey="%s"' % (self.lastratingkey)
|
||||||
if pbmc_server:
|
|
||||||
(self.server, self.port) = pbmc_server.split(':')
|
|
||||||
serv = getServerByHost(self.server)
|
serv = getServerByHost(self.server)
|
||||||
if info.get('playQueueID'):
|
if info.get('playQueueID'):
|
||||||
self.containerKey = "/playQueues/%s" % info.get('playQueueID')
|
self.containerKey = "/playQueues/%s" % info.get('playQueueID')
|
||||||
|
|
Loading…
Reference in a new issue