Remove obsolete check for Kodi profile switch
This commit is contained in:
parent
2c12f2e705
commit
fa9ca95e2e
1 changed files with 0 additions and 11 deletions
|
@ -91,10 +91,6 @@ class Service(object):
|
||||||
for prop in WINDOW_PROPERTIES:
|
for prop in WINDOW_PROPERTIES:
|
||||||
utils.window(prop, clear=True)
|
utils.window(prop, clear=True)
|
||||||
|
|
||||||
# To detect Kodi profile switches
|
|
||||||
utils.window('plex_kodiProfile',
|
|
||||||
value=utils.try_decode(xbmc.translatePath("special://profile")))
|
|
||||||
|
|
||||||
# Load/Reset PKC entirely - important for user/Kodi profile switch
|
# Load/Reset PKC entirely - important for user/Kodi profile switch
|
||||||
# Clear video nodes properties
|
# Clear video nodes properties
|
||||||
library_sync.VideoNodes().clearProperties()
|
library_sync.VideoNodes().clearProperties()
|
||||||
|
@ -423,13 +419,6 @@ class Service(object):
|
||||||
|
|
||||||
# Main PKC program loop
|
# Main PKC program loop
|
||||||
while not self.isCanceled():
|
while not self.isCanceled():
|
||||||
# Check for Kodi profile change
|
|
||||||
if utils.window('plex_kodiProfile') != v.KODI_PROFILE:
|
|
||||||
# Profile change happened, terminate this thread and others
|
|
||||||
LOG.info("Kodi profile was: %s and changed to: %s. "
|
|
||||||
"Terminating old PlexKodiConnect thread.",
|
|
||||||
v.KODI_PROFILE, utils.window('plex_kodiProfile'))
|
|
||||||
break
|
|
||||||
|
|
||||||
# Check for PKC commands from other Python instances
|
# Check for PKC commands from other Python instances
|
||||||
plex_command = utils.window('plexkodiconnect.command')
|
plex_command = utils.window('plexkodiconnect.command')
|
||||||
|
|
Loading…
Add table
Reference in a new issue