2011-04-04, 00:18
Montellese Wrote:Can you be more specific about what you mean with "very strange results"?Yeah, sure, sorry. For testing I'm using Ithe "simple rest client" plugin in chrome.
With the xbmc nightly build, there doesn't appear to be any indentation on the results that are returned. That is just a clue that something is different, but not necessarily breaking anything. With xbmc 10.1 it comes back all nicely indented.
Now for the true bug... With the nightly, if I call a method that has optional fields, XBMC seems to be returning all fields anyway.
for example with this command:
Code:
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "start": 0, "end": 100, "sortorder":"ascending", "fields": ["genre","year"] }, "id": 1}
If you want I can do another test and provide more information, logs, or screen-captures, but to do it I'll have to reinstall a nightly build, since I've now gone back to 10.1
While I'm on the topic, why does this command return the fanart, filename, and thumbnail, even if we don't ask for it? ID and label I can understand, but the rest seems wasteful, especially if I'm asking for a list of all items.
with the above command, using 10.1 I get this result:
Code:
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : {
"end" : 43,
"movies" : [
{
"fanart" : "special://masterprofile/Thumbnails/Video/Fanart/8d34bf81.tbn",
"file" : "D:\\Movies\\The Incredibles\\The Incredibles (2004).avi",
"genre" : "Animation / Action / Adventure / Family / Fantasy",
"label" : "The Incredibles",
"movieid" : 14,
"thumbnail" : "special://masterprofile/Thumbnails/Video/8/8d34bf81.tbn",
"year" : 2004
},
...
...