Selection of installed addons
#1
I'm a bit of a n00b when it comes to python scripting but i can manage my way around.
There is only one thing i can't solve, I want to add a selection menu in addon that lets you select addons to be allowed or not.

Simple example, if addon(s) is(are) installed then yes else no.
How could I accomplish such?
Reply
#2
Not sure if your familiar with JSON but the Addons.GetAddons call would probably give you what you want.

http://kodi.wiki/view/JSON-RPC_API/v6#Addons.GetAddons

I'm not an expert either as I've used JSON for the first time recently but I did notice this.
Reply
#3
Sorry for my late reply but found some time to pick this up again.

Did a quick test but can't get the installed addons listed as expected.
Did I forgot something?

Command used:
addons_installed = xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Addons.GetAddons", "id":1}')
print addons_installed

Output:
13:17:41 T:6152 DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method" : "Addons.GetAddons", "params": { }, "id":1 }
13:17:41 T:6152 DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method" : "Addons.GetAddons", "params": { "content": "executable" }, "id":1 }
13:17:41 T:6152 DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method" : "Addons.GetAddons", "params": { "content": "video" }, "id":1 }
13:17:41 T:6152 DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method" : "Addons.GetAddons", "params": { "content": "audio" }, "id":1 }
13:17:41 T:6152 DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method" : "Addons.GetAddons", "params": { "content": "image" }, "id":1 }
13:17:41 T:6152 DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method" : "Favourites.GetFavourites", "params": { }, "id":1 }
13:17:41 T:6152 DEBUG: CFavourites::Load - no system favourites found, skipping
Reply

Logout Mark Read Team Forum Stats Members Help
Selection of installed addons0