2015-11-30, 21:07
The modeling of the json query is drivin' me nuts, need an example or a code snippet. I tried
in various forms (changing channel to ChannelName etc.) but I get everytime
Painful.
Code:
res = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "PVR.GetChannels", "params": {"PVR.ChannelGroup.Id": "1", "properties": ["channel": "%s"]}, "id": "1"}' % channelname)
Code:
19:59:19 T:3148 ERROR: JSONRPC: Failed to parse '{"jsonrpc": "2.0", "method": "PVR.GetChannels", "params": {"PVR.ChannelGroup.Id": "1", "properties": ["channel": "VOX"]}, "id": "1"}'
19:59:19 T:3148 NOTICE: [service.kn.switchtimer] {"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}
Painful.