Fix Settaggio Autostart KoD

This commit is contained in:
Alhaziel
2020-03-21 17:33:17 +01:00
parent dfbc96a018
commit d1135529d1
3 changed files with 7 additions and 5 deletions

View File

@@ -152,7 +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))
set_setting('autostart', 'ON')
else:
file = open(path, "r")
old_content = file.read()
@@ -160,7 +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))
set_setting('autostart', 'OFF')
return True
def get_all_settings_addon():