mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Re-add connection message
Reenabled the option to disable the message as well.
This commit is contained in:
parent
4d28f2a878
commit
2f78ea46d9
2 changed files with 7 additions and 6 deletions
|
@ -36,7 +36,7 @@
|
||||||
</category>
|
</category>
|
||||||
<category label="30022">
|
<category label="30022">
|
||||||
<setting id="logLevel" type="enum" label="30004" values="None|Info|Debug" default="0" />
|
<setting id="logLevel" type="enum" label="30004" values="None|Info|Debug" default="0" />
|
||||||
<!--<setting id="supressConnectMsg" type="bool" label="30249" default="false" visible="true" enable="true" /> -->
|
<setting id="supressConnectMsg" type="bool" label="30249" default="false" visible="true" enable="true" />
|
||||||
<setting label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" />
|
<setting label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" />
|
||||||
|
|
||||||
</category>
|
</category>
|
||||||
|
|
|
@ -71,6 +71,7 @@ class Service():
|
||||||
def ServiceEntryPoint(self):
|
def ServiceEntryPoint(self):
|
||||||
|
|
||||||
WINDOW = self.WINDOW
|
WINDOW = self.WINDOW
|
||||||
|
addon = xbmcaddon.Addon(id=self.clientInfo.getAddonId())
|
||||||
WINDOW.setProperty("Server_online", "")
|
WINDOW.setProperty("Server_online", "")
|
||||||
self.WINDOW.setProperty("Server_status", "")
|
self.WINDOW.setProperty("Server_status", "")
|
||||||
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||||
|
@ -96,11 +97,11 @@ class Service():
|
||||||
# Server is online
|
# Server is online
|
||||||
if (user.currUser != None) and (user.HasAccess == True):
|
if (user.currUser != None) and (user.HasAccess == True):
|
||||||
self.warn_auth = True
|
self.warn_auth = True
|
||||||
''''if self.welcome_msg:
|
if addon.getSetting('supressConnectMsg') == "false":
|
||||||
|
if self.welcome_msg:
|
||||||
# Reset authentication warnings
|
# Reset authentication warnings
|
||||||
self.welcome_msg = False
|
self.welcome_msg = False
|
||||||
self.warn_auth = True
|
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, time=2000, sound=False)
|
||||||
xbmcgui.Dialog().notification("Emby server", "Welcome %s!" % user.currUser, sound=False)'''
|
|
||||||
|
|
||||||
# Correctly launch the websocket, if user manually launches the add-on
|
# Correctly launch the websocket, if user manually launches the add-on
|
||||||
if (self.newWebSocketThread == None):
|
if (self.newWebSocketThread == None):
|
||||||
|
|
Loading…
Reference in a new issue