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 self.currUser = username
dialog = xbmcgui.Dialog() dialog = xbmcgui.Dialog()
if username: if username:
dialog.notification(self.addonName, dialog.notification(
"Welcome %s" % username.decode('utf-8'), heading=self.addonName,
"special://home/addons/plugin.video." message="Welcome %s" % username.decode('utf-8'),
"plexkodiconnect/icon.png") icon="special://home/addons/plugin.video.plexkodiconnect/icon.png")
else: else:
dialog.notification(self.addonName, dialog.notification(
"Welcome", heading=self.addonName,
"special://home/addons/plugin.video." message="Welcome",
"plexkodiconnect/icon.png") icon="special://home/addons/plugin.video.plexkodiconnect/icon.png")
settings('accessToken', value=accessToken) settings('accessToken', value=accessToken)
settings('userId%s' % username, value=userId) settings('userId%s' % username, value=userId)
log("User authenticated with an access token", 1) log("User authenticated with an access token", 1)

View file

@ -321,7 +321,8 @@ class Service():
delay = int(utils.settings('startupDelay')) delay = int(utils.settings('startupDelay'))
xbmc.log("Delaying Plex startup by: %s sec..." % delay) 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 # Start the service
xbmc.log("Abort requested while waiting. Emby for kodi not started.") xbmc.log("Abort requested while waiting. Emby for kodi not started.")
else: else: