ppic Wrote:basically, you don't need http if you use executehttpapi
same way for you with a json request
I searched around on google and couldn't find an xbmc.excute for json.
Then I tried xbmc.executejsonapi() and that didn't work.
Finally I put
for k in xbmc.__dict__.keys(): print k
in my script and found xbmc.executeJSONRPC()!
I tried that and it works.
Also I have written a nice little python jsonrpc api. It will work via xbmc.executeJSONAPI or via HTTP using the same interface.
api = jsonrpc.jsonrpcAPI()
api = jsonrpc.jsonrpcAPI(mode='http',url='http://192.168.1.5:8080/jsonrpc',user='user',password='password')
seasonsarray = api.VideoLibrary.GetSeasons(tvshowid="idhere")
As you can see it mirrors the format of the jsonrpc. It also should be future-proof as it doesn't have to 'physically' implement the methods.
Anyway, if you if anyone else is interested in using it let me know and I'll make it available.