View Single Post
Posts: 203 | Thanked: 375 times | Joined on Nov 2009
#143
Originally Posted by Amboss View Post
Could you provide me with a link to the bug report or discussion on xbmc forums (if there are any) so I can keep myself updated on the issue? I am obviously too *** to use the correct search strings myself
I don't think there is a bug report for it, at least I couldn't find one on http://trac.xbmc.org/search?q=JSONRPC. I just know that it has been working for directories and stopped working at some point. If you are interested in debugging this or file a bug report in xbmc, here is a short startup:

- get a REST plugin for your browser (e.g. "Simple REST Client" for chrome)
- send a POST command to: http://<xbmc-ip>:<xbmc-port>/jsonrpc
with the following data:
Code:
{ "id" : 187, "jsonrpc" : "2.0", "method" : "Playlist.Add", "params" : { "item" : { "directory" : "/path/to/your/music/dir/" }, "playlistid" : 0 } }
This is what xbmcremote sends to xbmc when playing a whole directory. According to the API docs it should work, but replies with "Invalid parameters".

To get the API docs, call
Code:
{ "id" : 187, "jsonrpc" : "2.0", "method" : "JSONRPC.Introspect" }
 

The Following User Says Thank You to mzanetti For This Useful Post: