Merge pull request #171 from angelblue05/develop

Add option to enable/disable service
This commit is contained in:
angelblue05 2019-01-21 08:31:44 -06:00 committed by GitHub
commit cd66d567ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 11 deletions

View file

@ -922,14 +922,6 @@ msgctxt "#33188"
msgid "Would you like to sync Rotten Tomatoes ratings?"
msgstr ""
msgctxt "#33189"
msgid "The database version detected is unsupported. Syncing may not work, proceed anyway?"
msgstr ""
msgctxt "#33190"
msgid "Enable Kodi database discovery"
msgstr ""
msgctxt "#33191"
msgid "Restart Emby for Kodi to apply this change?"
msgstr ""
@ -945,3 +937,11 @@ msgstr ""
msgctxt "#33194"
msgid "Manage libraries"
msgstr ""
msgctxt "#33195"
msgid "Enable Emby for Kodi"
msgstr ""
msgctxt "#33196"
msgid "Advanced options"
msgstr ""

View file

@ -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" />

View file

@ -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()