Fix Settaggio Autostart

This commit is contained in:
Alhaziel
2020-03-20 12:18:19 +01:00
parent ebcdc39c77
commit 4e2582d250
2 changed files with 3 additions and 1 deletions

View File

@@ -152,6 +152,7 @@ def enable_disable_autorun(is_enabled):
if is_enabled is False:
with open(path, append_write) as file:
file.write("import xbmc\nxbmc.executebuiltin('XBMC.RunAddon(plugin.video.kod)')")
set_setting('autostart', get_localized_string(707431))
else:
file = open(path, "r")
old_content = file.read()
@@ -159,6 +160,7 @@ def enable_disable_autorun(is_enabled):
file.close()
with open(path, "w") as file:
file.write(new_content)
set_setting('autostart', get_localized_string(707432))
return True
def get_all_settings_addon():

View File

@@ -2,7 +2,7 @@
<settings>
<!-- General -->
<category label="70168">
<setting id="autostart" type="action" label="70706" action="RunPlugin(plugin://plugin.video.kod/?ew0KICAgICJhY3Rpb24iOiAiYXV0b3N0YXJ0IiwNCiAgICAiY2hhbm5lbCI6ICJzZXR0aW5nIg0KfQ==)"/>
<setting id="autostart" type="action" label="70706" action="RunPlugin(plugin://plugin.video.kod/?ew0KICAgICJhY3Rpb24iOiAiYXV0b3N0YXJ0IiwNCiAgICAiY2hhbm5lbCI6ICJzZXR0aW5nIg0KfQ==)" default='707432'/>
<setting type="sep"/>
<setting id="thumbnail_type" type="select" lvalues="30011|30012|30200" label="30010" default="2"/>
<setting id="channel_language" type="select" values="auto|all|ita" label="30019" default="all"/>