2011-01-05, 16:57
Montellese Wrote:I feared as much as what you provide for the json rpc request is javascript syntax and there the single quote is alright.
The question is how mootools formats the json object you provide it with and how it is sent to XBMC. Can you use something like Firebug to look at the actually sent HTTP request? This might help in locating the problem.
EDIT: Just had another thought. How do you tell mootools where XBMC is located? Your url only says "/jsonrpc" but there is no IP or something like that. But as I don't know mootools anymore (last time I used it it was in the very first beta ) this is simply a shot in the dark.
Firebug only says it is doing a post with the following data:
Code:
[application/x-www-form-urlencoded]
id 1
jsonrpc 2.0
method Files.GetSources
params[media] video
[Source]
jsonrpc=2.0&method=Files.GetSources&id=1¶ms[media]=video
So no sign of any quotes there. I'm pretty sure that the url is alright though..