2020-09-14, 16:50
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.