![]() |
|
XBMC-PHP-RPC - a PHP JSON-RPC library supporting HTTP and TCP - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116) +--- Thread: XBMC-PHP-RPC - a PHP JSON-RPC library supporting HTTP and TCP (/showthread.php?tid=90465) |
- Mindzai - 2011-05-25 12:21 OK I compiled the latest nightly and found that the new RPC implementation did break the library but it was fairly trivial to fix. The new version in git supports both implementations, though you obviously would need to adjust the client code (eg the parameter format) if you want to support both implementations in your own apps. To that end, the *Client classes now have an isLegacy() method which you can call to find out which RPC implementation is being used and adjust accordingly. The example script has been updated to use this method. - gugahoi - 2011-05-25 13:57 Mindzai Wrote:OK I compiled the latest nightly and found that the new RPC implementation did break the library but it was fairly trivial to fix. The new version in git supports both implementations, though you obviously would need to adjust the client code (eg the parameter format) if you want to support both implementations in your own apps. To that end, the *Client classes now have an isLegacy() method which you can call to find out which RPC implementation is being used and adjust accordingly. The example script has been updated to use this method. AWESOME! Thanks for such a quick response! Will test it out with some nightlies and see if they work as expected. - Mindzai - 2011-05-25 13:58 gugahoi Wrote:AWESOME! Thanks for such a quick response! Will test it out with some nightlies and see if they work as expected. No problem Let me know if you run in to any problems.
- Romep - 2011-05-26 17:47 gugahoi Wrote: Are there any other sort methods? They are not documented on the JSON Wiki page. - gugahoi - 2011-05-27 03:40 Romep Wrote:Are there any other sort methods? They are not documented on the JSON Wiki page. I'm not sure, I believe you're best option would be to go on IRC and ask there. Regarding the Nightly compatibility, it seems like it's working as it should! Thanks for the great job! - Romep - 2011-05-30 19:36 Where do you get 10.5? If i download from git, i only get 11.0 PRE, but there json doesn't seem to work. - gugahoi - 2011-05-31 03:49 11.0 pre works fine for me. Just look at the examples and use the non legacy ones. - Mindzai - 2011-05-31 10:29 Romep Wrote:Where do you get 10.5? If i download from git, i only get 11.0 PRE, but there json doesn't seem to work. I honestly can't remember where 10.5 came from! As gugahoi says though it should work with 11.0 too. Bear in mind that the RPC interface in XBMC has been fairly radically updated since Dharma so old commands may not still work. The library itself should function fine though. - Romep - 2011-05-31 21:13 Ok, it works. Don't know what i did. But now i got another problem. I try to GetMovieDetails, but it doesn't accept my parameter? GetMovies runs perfectly. Code: $movie = $rpc->VideoLibrary->GetMovieDetails($this->movieid is (for example) 292. - samdret - 2011-06-03 09:12 Romep Wrote:Ok, it works. Don't know what i did. But now i got another problem. I try to GetMovieDetails, but it doesn't accept my parameter? GetMovies runs perfectly. There is no such thing as GetMovieDetails. I suggest you add a fields parameter to your GetMovies and use that information to show details. |