Posts: 1,293
Joined: Sep 2009
Reputation:
73
I totally agree with this addon not needing to restore deprecated features, however the actual deprecation of these features isn't always as clean as it could be. In other systems you have a function, say print(arg1, arg2) in V1. You get to V2 and it is changed to be print(arg1). So for V2 you support BOTH methods to give developers time to transition, and then kill the deprecated method in V3. Often with Kodi a Python function works in one version and then not in another with no time for addon devs to transition. I get that this is sometimes necessary but it does create some confusion. I had an addon I work on basically break overnight due to a python API change in a nightly Matrix build that wasn't even in the Pydocs yet.
Once you know of the change though using Git to manage this type of stuff is super easy. I have code for addons on Krypton, Leia and Matrix and just backport needed fixes between them with merges and cherry-pick commands. You can still maintain the codebase and manage the Kodi Python changes, just not in a single branch.
Posts: 466
Joined: Jun 2013
Reputation:
103
Thanks, will follow your example
Kodi 22 nightly Windows 10 | 21.2 Xbox One X | 22 nightly Linux Mint Xia XFCE | CoreELEC NO 22 nightly S905X4 aarch64
Posts: 514
Joined: Jan 2014
Reputation:
21
2020-12-01, 18:07
(This post was last modified: 2020-12-01, 18:43 by woodside.)
I have a question. By using kodi-six wrappers we can make our addons compatible for both Leia and Matrix but we'll still have to maintain 2 different versions because of the requirement of having to import python 3 for Matrix and 2.7 for Leia in the addon.xml file? Or am I missing something? Thanks.
[edit] Never mind. I think I get it.