Attempt to fix Plex logo showing when user signs in
This commit is contained in:
parent
ccdaaf5b4e
commit
2cca08d9cf
2 changed files with 10 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue