mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Add option to enable/disable service
This commit is contained in:
parent
d27d6394f5
commit
48911cb511
3 changed files with 17 additions and 3 deletions
|
@ -945,3 +945,11 @@ msgstr ""
|
|||
msgctxt "#33194"
|
||||
msgid "Manage libraries"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#33195"
|
||||
msgid "Enable Emby for Kodi"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#33196"
|
||||
msgid "Advanced options"
|
||||
msgstr ""
|
||||
|
|
|
@ -92,12 +92,13 @@
|
|||
<category label="30022"><!-- Advanced -->
|
||||
<setting label="30004" id="logLevel" type="enum" values="Disabled|Info|Debug" default="1" />
|
||||
<setting label="33164" id="maskInfo" type="bool" default="true" />
|
||||
<setting label="30529" id="startupDelay" type="number" default="0" option="int" />
|
||||
<setting label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" option="close" />
|
||||
<setting label="30535" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=deviceid)" option="close" />
|
||||
<setting label="33161" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=checkupdate)" option="close" />
|
||||
<setting label="33196" type="lsep" />
|
||||
<setting label="33195" id="enableAddon" type="bool" default="true" />
|
||||
<setting label="33180" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=restartservice)" option="close" />
|
||||
<setting type="sep" />
|
||||
<setting label="30529" id="startupDelay" type="number" default="0" option="int" />
|
||||
<setting label="33161" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=checkupdate)" option="close" />
|
||||
<setting label="Developer mode" id="devMode" type="bool" default="false" />
|
||||
|
||||
<setting type="sep" />
|
||||
|
|
|
@ -78,6 +78,11 @@ if __name__ == "__main__":
|
|||
|
||||
while True:
|
||||
|
||||
if not settings('enableAddon.bool'):
|
||||
LOG.warn("Emby for Kodi is not enabled.")
|
||||
|
||||
break
|
||||
|
||||
try:
|
||||
session = ServiceManager()
|
||||
session.start()
|
||||
|
|
Loading…
Reference in a new issue