2019-07-28, 20:54
(2019-07-28, 17:40)mfizz Wrote: Trying to figure out a way to toggle an addon, enabled or disabled.
I want to use the JSON-RPC to work it out if it is enabled to begin with and disable if enabled and vice versa.
Code:curl -X POST -H "content-type:application/json" http://localhost:
8080/jsonrpc -d '{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","id":7,"pa
rams":{"addonid": "$id","enabled":true}}'
How can i get the status of the addon if it is enabled or not
For a single addon:
https://kodi.wiki/view/JSON-RPC_API/v8#A...donDetails
For all installed addons:
https://kodi.wiki/view/JSON-RPC_API/v8#Addons.GetAddons