Added permanent users

When starting the Kodi session, will automatically add users to the
session.
This commit is contained in:
angelblue05 2015-08-15 00:20:06 -05:00
parent db45faed24
commit f290372c5d
5 changed files with 38 additions and 3 deletions

View file

@ -153,7 +153,13 @@ class Service():
if self.welcome_msg:
# Reset authentication warnings
self.welcome_msg = False
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, icon="special://home/addons/plugin.video.emby/icon.png", time=2000, sound=False)
# Get additional users
additionalUsers = user.AdditionalUser
if additionalUsers:
add = ", %s" % ", ".join(additionalUsers)
else:
add = ""
xbmcgui.Dialog().notification("Emby server", "Welcome %s%s!" % (user.currUser, add), icon="special://home/addons/plugin.video.emby/icon.png", time=2000, sound=False)
# Start the Websocket Client
if (self.newWebSocketThread is None):