2018-01-02, 16:30
Hello all,
I good while back I created some addons to startup/shutdown my windows severs called in windows batch scripts.
Got round to installing them again in 17.6. when I restart the kodi box I get the message that my addons are no longer compatible and have been disabled.
I am not a coder at all but I think that may have something to do with some sort of version listed in the addon.
Below is my 1 of my scripts. Can anyone please cast a quick eye and hopefully point out the change I need to make?
"addon.xml":
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="Shutdown Server and Kodi"
name="Shutdown Server and Kodi"
version="1.0.0"
provider-name="FlashPan">
<requires>
<import addon="xbmc.python" version="2.14.0"/>
</requires>
<extension point="xbmc.python.script"
library="shutdownserverandkodi.py" />
<extension point="xbmc.addon.metadata">
<summary lang="en">Shutdown Server and Kodi</summary>
<description lang="en">Runs Batch file in C:\Utils\KodiClientScripts\Shutdown Client</description>
<platform>all</platform>
</extension>
</addon>
"shutdownserverandkodi.py":
import subprocess
child = subprocess.Popen("C:\\Utils\\KodiServerScripts\\Shutdown Server and Kodi\\ShutdownServerandKodi.bat")
rc = child.wait()
Thanks and cheers for any help offered.
Cheers
I good while back I created some addons to startup/shutdown my windows severs called in windows batch scripts.
Got round to installing them again in 17.6. when I restart the kodi box I get the message that my addons are no longer compatible and have been disabled.
I am not a coder at all but I think that may have something to do with some sort of version listed in the addon.
Below is my 1 of my scripts. Can anyone please cast a quick eye and hopefully point out the change I need to make?
"addon.xml":
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="Shutdown Server and Kodi"
name="Shutdown Server and Kodi"
version="1.0.0"
provider-name="FlashPan">
<requires>
<import addon="xbmc.python" version="2.14.0"/>
</requires>
<extension point="xbmc.python.script"
library="shutdownserverandkodi.py" />
<extension point="xbmc.addon.metadata">
<summary lang="en">Shutdown Server and Kodi</summary>
<description lang="en">Runs Batch file in C:\Utils\KodiClientScripts\Shutdown Client</description>
<platform>all</platform>
</extension>
</addon>
"shutdownserverandkodi.py":
import subprocess
child = subprocess.Popen("C:\\Utils\\KodiServerScripts\\Shutdown Server and Kodi\\ShutdownServerandKodi.bat")
rc = child.wait()
Thanks and cheers for any help offered.
Cheers