Hi there!
I posted this on the Kodi forums but apparently this is a banned topic because it enables you to bypass a Kodi security feature or something... So I'm posting here
I am wondering if there is python code that will allow me to enable one addon, from another. The addon I am trying to enable has been installed properly, using the add-on installer in Kodi, but has been disabled.
I have 6 devices running Kodi 17.4 using LibreElec 8.2 (Windows x86/Android TV/Pi) at 4 locations, and I access them via SSH. I can remote in and try to enable the addon remotely, but it would be far better if I could get my one addon to check on the statuys of the other addon upon start. And if it is disabled, enable it.
I have 2 addons; pluging.video.testaddon & plugin.video.demoaddon
In order for pluging.video.testaddon to work, plugin.video.demoaddon bust be enabled. plugin.video.demoaddon gets disabled when the system updates (LibreElec updates). If I go into addons and enable it, it works fine, but I am not local t these machines and I cannot do that. It is nearly impossible for be to walk the elderly folks, who are using the devices, through enabling the addons lol.
So I need pluging.video.testaddon, when it starts up, to check if plugin.video.demoaddon is enabled. If not, it needs to enable it.
Is this possible?
I have searched and found the following thread (https://forum.kodi.tv/showthread.php?tid...able+addon), which suggests the following format:
import xbmc
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id":1, "method": "Addons.SetAddonEnabled", "params": { "addonid": "plugin.video.demoaddon ", "enabled": false }}')
I have added this line into startup.py in pluging.video.testaddon, but had no luck so far.
Thanks so much for your time!!
Ken