Posts: 1,739
Joined: Aug 2011
Reputation:
23
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?
Posts: 1,739
Joined: Aug 2011
Reputation:
23
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