2020-04-16, 19:20
As most of you know by now, team kodi made the decision that addon.xml has to import xbmc.python 3.0.0 in order to be installable on Matrix, which makes it not compatible with Leia or prior versions. This forces most if not all addon maintainers to have to maintain 2 repos, one for Matrix and one for Leia and older, even if the addon itself is fully compatible with all versions (py2 and py3).
I'm on that boat where I maintain dozens of addons in an external repo (before anyone comments about the official kodi repo or banned addons, etc. I'd like to add that they are non piracy related docker addons that work with LibreELEC and thus have no business in the official kodi repo): https://github.com/linuxserver/libreelec-addon-repo
I got a little frustrated when I found out about this new requirement / breaking change. After some testing, I found a workaround.
The workaround:
I removed the following import line for xbmc.python completely from the addon.xml and it works just the same.
Keep in mind that kodi will likely not accept that workaround in PRs to the official repo, however, for any external repo maintainers, this is a huge deal.
I'm on that boat where I maintain dozens of addons in an external repo (before anyone comments about the official kodi repo or banned addons, etc. I'd like to add that they are non piracy related docker addons that work with LibreELEC and thus have no business in the official kodi repo): https://github.com/linuxserver/libreelec-addon-repo
I got a little frustrated when I found out about this new requirement / breaking change. After some testing, I found a workaround.
The workaround:
I removed the following import line for xbmc.python completely from the addon.xml and it works just the same.
Python code is executed properly, and the addon installs on both Leia and Matrix. I have not noticed any side effects (granted my addons use very simple python code). Tested with Milhouse builds (0414/15) on LibreELEC.xml:<import addon="xbmc.python" version="2.1.0"/>
Keep in mind that kodi will likely not accept that workaround in PRs to the official repo, however, for any external repo maintainers, this is a huge deal.