mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Option to suppress server connection notification
It make an error noise that I have grown to despise.
This commit is contained in:
parent
26befdb859
commit
84c7130cc9
3 changed files with 7 additions and 1 deletions
|
@ -248,6 +248,7 @@
|
|||
<string id="30246">Enable Netflix style next up notification</string>
|
||||
<string id="30247"> - The number of seconds before the end to show the notification</string>
|
||||
<string id="30248">Show Emby Info dialog on play/select action</string>
|
||||
<string id="30249">Suppress server connection message at boot</string>
|
||||
|
||||
|
||||
<!-- Default views -->
|
||||
|
@ -266,4 +267,5 @@
|
|||
<string id="30312">Channels</string>
|
||||
|
||||
|
||||
|
||||
</strings>
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
</category>
|
||||
<category label="30022">
|
||||
<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 label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" />
|
||||
|
||||
</category>
|
||||
</settings>
|
||||
|
|
|
@ -195,7 +195,9 @@ class Service():
|
|||
break
|
||||
self.server_online = True
|
||||
self.logMsg("Server is online and ready.", 1)
|
||||
xbmcgui.Dialog().notification("Connection successful", "%s Server is online." % self.addonName, time=2000)
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
if addonSettings.getSetting("supressConnectMsg")=="false":
|
||||
xbmcgui.Dialog().notification("Connection successful", "%s Server is online." % self.addonName, time=2000)
|
||||
WINDOW.setProperty("Server_online", "true")
|
||||
|
||||
# Server is online, proceed.
|
||||
|
|
Loading…
Reference in a new issue