My own Addons are not incompatible
#1
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
Confusion is just a state of mind.
Reply
#2
Code:
  <import addon="xbmc.python" version="2.14.0"/>

kodi 17.6 provides xbmc.python version="2.25.0" and it is not backwards compat to 2.14.0
Reply
#3
Thank you spiff, yep that was the exact issue Smile

Edited my addons any they work now.

Cheers
Confusion is just a state of mind.
Reply
#4
(2018-01-02, 16:39)spiff Wrote:
Code:
  <import addon="xbmc.python" version="2.14.0"/>

kodi 17.6 provides xbmc.python version="2.25.0" and it is not backwards compat to 2.14.0 
http://kodi.wiki/view/Addon.xml#Dependency_versions

HuhHuh
Reply
#5
What is your point?
Reply
#6
It actually is backwards compatible for dependency https://github.com/xbmc/xbmc/blob/master.../addon.xml
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
My own Addons are not incompatible0