Move welcome message to service

This commit is contained in:
angelblue05 2018-10-07 17:55:34 -05:00
parent 2c4ce7e7a4
commit aef76725c8
2 changed files with 7 additions and 7 deletions

View file

@ -110,13 +110,6 @@ class Connect(object):
settings('serverName', client['config/auth.server-name'])
settings('server', client['config/auth.server'])
if settings('connectMsg.bool'):
users = [user for user in settings('additionalUsers').split(',') if user]
users.insert(0, self.user['Name'])
dialog("notification", heading="{emby}", message="%s %s" % (_(33000), ", ".join(users)),
icon="{emby}", time=1500, sound=False)
event('ServerOnline', {'ServerId': server_id})
event('LoadServer', {'ServerId': server_id})

View file

@ -234,6 +234,13 @@ class Service(xbmc.Monitor):
self.settings['auth_check'] = True
self.warn = True
if settings('connectMsg.bool'):
users = [user for user in (settings('additionalUsers') or "").split(',') if user]
users.insert(0, settings('username'))
dialog("notification", heading="{emby}", message="%s %s" % (_(33000), ", ".join(users)),
icon="{emby}", time=1500, sound=False)
if self.library_thread is None:
self.library_thread = library.Library(self)