Alpha Krypton alpha 2 - JSON problem?
#1
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 }
JSON_result = utils.executeJSON(JSON_req)
log('JSON syntax query = %s' % JSON_result)

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?
Add-on : Bluray iso utils Rewrite of BR_iso_enhancements
Add-on : BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Reply
#2
Video.Details.File is not a method, but a type ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(2016-07-18, 01:25)ronie Wrote: Video.Details.File is not a method, but a type ;-)

Slaps hand against forehead!

Thanks!
Add-on : Bluray iso utils Rewrite of BR_iso_enhancements
Add-on : BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Reply

Logout Mark Read Team Forum Stats Members Help
Krypton alpha 2 - JSON problem?0