Alpha Krypton alpha 2 - JSON problem? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Alpha Krypton alpha 2 - JSON problem? (/showthread.php?tid=282947) |
Krypton alpha 2 - JSON problem? - Wimpie - 2016-07-17 I'm trying to use JSON in my addon, so i'm using the JSONRPC.Introspect call to see what gets returned. Code: JSON_req = {"jsonrpc": "2.0", "method": "JSONRPC.Introspect", "params": { "filter": { "id": "Application.SetMute", "type": "method" } }, "id": 1 } The above code works. I call it in my xbmc.player.onPlayBackStarted event handler (probably not important info) and get 'expected' info back. However, if I replace "Application.SetMute" with "Video.Details.File" then I get following error: Code: {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Invalid params.', u'code': -32602}} Is the "Video.Details.File" method removed (typo ?, I copy/paste from the wiki)? I'm using krypton alpha 2 (17.0-ALPHA2 Git:20160630-f3ca4ea). Or maybe a problem on my side? RE: Krypton alpha 2 - JSON problem? - ronie - 2016-07-18 Video.Details.File is not a method, but a type ;-) RE: Krypton alpha 2 - JSON problem? - Wimpie - 2016-07-18 (2016-07-18, 01:25)ronie Wrote: Video.Details.File is not a method, but a type ;-) Slaps hand against forehead! Thanks! |