Clean up Plex Companion subscribers
This commit is contained in:
parent
55791659a9
commit
98554dbe26
1 changed files with 4 additions and 6 deletions
|
@ -1,12 +1,12 @@
|
|||
import re
|
||||
import threading
|
||||
from xml.dom.minidom import parseString
|
||||
# from xml.dom.minidom import parseString
|
||||
from functions import *
|
||||
from settings import settings
|
||||
from httppersist import requests
|
||||
|
||||
from xbmc import Player
|
||||
import xbmcgui
|
||||
# import xbmcgui
|
||||
import downloadutils
|
||||
from utils import window
|
||||
import PlexFunctions as pf
|
||||
|
@ -67,11 +67,9 @@ class SubscriptionManager:
|
|||
ret += ' />'
|
||||
return ret
|
||||
|
||||
WINDOW = xbmcgui.Window(10000)
|
||||
|
||||
# pbmc_server = str(WINDOW.getProperty('plexbmc.nowplaying.server'))
|
||||
# userId = str(WINDOW.getProperty('currUserId'))
|
||||
pbmc_server = WINDOW.getProperty('pms_server')
|
||||
pbmc_server = window('pms_server')
|
||||
if pbmc_server:
|
||||
(self.protocol, self.server, self.port) = \
|
||||
pbmc_server.split(':')
|
||||
|
@ -81,7 +79,7 @@ class SubscriptionManager:
|
|||
while not keyid:
|
||||
if count > 300:
|
||||
break
|
||||
keyid = WINDOW.getProperty('Plex_currently_playing_itemid')
|
||||
keyid = window('Plex_currently_playing_itemid')
|
||||
xbmc.sleep(100)
|
||||
count += 1
|
||||
if keyid:
|
||||
|
|
Loading…
Reference in a new issue