2013-03-01, 19:24
Probably a stupid error but I've been over it a dozen times today and cannot spot it! Trying to do the following submit:
Calling that with
However JSON error is:
can anyone spot what stupid thing I'm doing wrong here?!
Code:
def setTVShowDetailsinXbmc(libraryId, playing_title, playing_plot):
rpccmd = json.dumps({'jsonrpc': '2.0', 'method': 'VideoLibrary.SetTVShowDetails', 'params': {'tvshowid': libraryId, 'title': playing_title, 'playcount': 1, 'plot': playing_plot}, 'id': 1})
result = xbmc.executeJSONRPC(rpccmd)
xbmc.log( "JSON reply: " + result )
return None
Calling that with
Code:
setTVShowDetailsinXbmc(1, "Test title", "Test plot")
However JSON error is:
Code:
17:30:37 T:2982148928 NOTICE: JSON reply: {"error":{"code":-32602,"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
can anyone spot what stupid thing I'm doing wrong here?!