Attempt to fix Plex logo showing when user signs in

This commit is contained in:
tomkat83 2016-03-03 09:13:42 +01:00
parent ccdaaf5b4e
commit 2cca08d9cf
2 changed files with 10 additions and 9 deletions

View file

@ -348,15 +348,15 @@ class UserClient(threading.Thread):
self.currUser = username
dialog = xbmcgui.Dialog()
if username:
dialog.notification(self.addonName,
"Welcome %s" % username.decode('utf-8'),
"special://home/addons/plugin.video."
"plexkodiconnect/icon.png")
dialog.notification(
heading=self.addonName,
message="Welcome %s" % username.decode('utf-8'),
icon="special://home/addons/plugin.video.plexkodiconnect/icon.png")
else:
dialog.notification(self.addonName,
"Welcome",
"special://home/addons/plugin.video."
"plexkodiconnect/icon.png")
dialog.notification(
heading=self.addonName,
message="Welcome",
icon="special://home/addons/plugin.video.plexkodiconnect/icon.png")
settings('accessToken', value=accessToken)
settings('userId%s' % username, value=userId)
log("User authenticated with an access token", 1)

View file

@ -321,7 +321,8 @@ class Service():
delay = int(utils.settings('startupDelay'))
xbmc.log("Delaying Plex startup by: %s sec..." % delay)
if delay and xbmc.Monitor().waitForAbort(delay):
# Plex: add 3 seconds just for good measure
if delay and xbmc.Monitor().waitForAbort(delay+3):
# Start the service
xbmc.log("Abort requested while waiting. Emby for kodi not started.")
else: