VideoLibrary.SetTVShowDetails error
#1
Probably a stupid error but I've been over it a dozen times today and cannot spot it! Trying to do the following submit:

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?!
Andy - http://twitter.com/andyb2000 http://www.thebmwz3.co.uk/
HTS Tvheadend development (via http://github.com/andyb2000) On Ubuntu with ST STV0299 DVB-S2, Conexant CX24116/CX24118, Philips TDA10046H DVB-T (Freesat and Freeview in the UK)

XBMC via OpenElec on Dell XPS210
Reply

Logout Mark Read Team Forum Stats Members Help
VideoLibrary.SetTVShowDetails error0