mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Move welcome message to service
This commit is contained in:
parent
2c4ce7e7a4
commit
aef76725c8
2 changed files with 7 additions and 7 deletions
|
@ -110,13 +110,6 @@ class Connect(object):
|
||||||
settings('serverName', client['config/auth.server-name'])
|
settings('serverName', client['config/auth.server-name'])
|
||||||
settings('server', client['config/auth.server'])
|
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('ServerOnline', {'ServerId': server_id})
|
||||||
event('LoadServer', {'ServerId': server_id})
|
event('LoadServer', {'ServerId': server_id})
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,13 @@ class Service(xbmc.Monitor):
|
||||||
self.settings['auth_check'] = True
|
self.settings['auth_check'] = True
|
||||||
self.warn = 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:
|
if self.library_thread is None:
|
||||||
|
|
||||||
self.library_thread = library.Library(self)
|
self.library_thread = library.Library(self)
|
||||||
|
|
Loading…
Reference in a new issue