2012-01-25, 13:29
I'm trying to query movies database :
but it raise an error
Everything is OK vith V2.0 JSONRPC :
Calling method is different ?
Sorry but I'm discovering XBMC, python, XML, ...
Code:
json_query = xbmc.executeJSONRPC('{"jsonrpc": "3.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["file", "fanart", "thumbnail"]}, "id": 1}')
but it raise an error
Code:
JSONRPC: Failed to parse '{"id":1,"jsonrpc":"3.0","method":"VideoLibrary.GetMovies","params":{"properties":["file","fanart","thumbnail"]}}'
Everything is OK vith V2.0 JSONRPC :
Code:
json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["file", "fanart", "thumbnail"]}, "id": 1}')
Calling method is different ?
Sorry but I'm discovering XBMC, python, XML, ...