Posts: 1,844
Joined: Jul 2012
Reputation:
68
2020-09-14, 02:18
(This post was last modified: 2020-09-14, 02:19 by emveepee.)
Now that addon can be shown to be in depreciated state can an addon designed to work in both python 2 and 3 with future, kodi-six etc, is there are way to supply just one one non-official repo with one source file that will work with Leia and Matrix? I do plan on fixing the addon to by pure python3 which would be the Matrix+ version.
Martin
Posts: 1,665
Joined: Jun 2011
Reputation:
119
I'm afraid it is not possible to have an addon that works on Matrix and Leia without modifying addon.xml (Python code can be the same). So in case of custom repos you need to maintain 2 repos: one for Matrix and another for lower Kodi versions.
Posts: 1,844
Joined: Jul 2012
Reputation:
68
I thought perhaps a core change to allow something like this could be version independent.
<import addon="xbmc.python" version="2.x.x" max="3.8"/>
could work. This would tell Kodi it is tested in Matrix and to not disable it which should be the most import consideration. It could be marked deprecated if version is not 3.
Dependencies would simply draw the current version from the kodi repo. Custom imports would be left to the addon.
Martin
Posts: 1,844
Joined: Jul 2012
Reputation:
68
Thanks for the info. My goal was to manage just one repo with one filename not having to add a qualifier and I don't see that is possible anymore. I really don't want to add matrix, my last version worked through from xbmc for eight years and I try not to make installation and upgrading unnecessarily hard.
Martin
Posts: 1,844
Joined: Jul 2012
Reputation:
68
Rather then changing the <import addon="xbmc.python"....> what about removing it as suggested by another user who supports a very small number of users? It will work today and you could mark this deprecated.
That way I can try and figure out what to I need to do to remove the very helpful kodi-six and future libraries and make a pure python3 version which can have the proper versioning.
Martin