Corretti alcuni testi

This commit is contained in:
axlt2002
2020-03-21 18:55:35 +01:00
parent b0212de4d4
commit 7ae36b72e6
4 changed files with 28 additions and 29 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', 'ON')
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', 'OFF')
set_setting('autostart', 'Off')
return True
def get_all_settings_addon():