2010-11-05, 15:34
Strange that it works for tv shows but not movies. Is xbmc's default web interface working? Are you on the latest version of xbmc?
Zarquon Wrote:Try changing the path toCode:http://IP:port/sickbeard/comingEpisodes
Quote:Strange that it works for tv shows but not movies. Is xbmc's default web interface working? Are you on the latest version of xbmc?
XBMC's JSON API did not respond.
Check your configuration (config.php) and that the JSON service variable is configured correctly and that the Service is running.
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "sortorder" : "ascending", "fields" : [ "genre", "director", "trailer", "tagline", "plot", "plotoutline", "title", "originaltitle", "lastplayed", "showtitle", "firstaired", "duration", "season", "episode", "runtime", "year", "playcount", "rating", "writer", "studio", "mpaa", "premiered", "album" ] }, "id": 1}
XBMC's JSON API did not respond.
Check your configuration (config.php) and that the JSON service variable is configured correctly and that the Service is running.
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "sortorder" : "ascending", "fields" : [ "genre", "director", "trailer", "tagline", "plot", "plotoutline", "title", "originaltitle", "lastplayed", "showtitle", "firstaired", "duration", "season", "episode", "runtime", "year", "playcount", "rating", "writer", "studio", "mpaa", "premiered", "album" ] }, "id": 1}
DEBUG: Time to retrieve movies from dataset = 11
11:28:18 T:2956897136 M:801865728 DEBUG: GetSetsNav query: SELECT sets.idSet,sets.strSet,COUNT(1) AS c,count(files.playCount) FROM sets JOIN setlinkmovie ON sets.idSet=setlinkmovie.idSet JOIN movie ON setlinkmovie.idMovie=movie.idMovie JOIN files ON files.idFile=movie.idFile GROUP BY sets.idSet HAVING c>1
11:28:18 T:2956897136 M:801865728 DEBUG: GetMoviesByWhere query: select * from movieview WHERE movieview.idMovie NOT IN (SELECT idMovie FROM setlinkmovie s1 JOIN(SELECT idSet, COUNT(1) AS c FROM setlinkmovie GROUP BY idSet HAVING c>1) s2 ON s2.idSet=s1.idSet)
11:28:18 T:2956897136 M:802500608 DEBUG: Time for actual SQL query = 4
11:28:18 T:2956897136 M:802070528 DEBUG: Time to retrieve movies from dataset = 163
11:28:20 T:2813418352 M:792879104 DEBUG: DoWork - took 222 ms to load special://masterprofile/Thumbnails/a/a38f1e2c.jpg
Nick8888 Wrote:Sounds great. Let me know if you want write access to commit any of the changes.
Quote:curl -i -X POST -d '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "sortorder" : "ascending", "fields" : [ "genre", "director", "trailer", "tagline", "plot", "plotoutline", "title", "originaltitle", "lastplayed", "showtitle", "firstaired", "duration", "season", "episode", "runtime", "year", "playcount", "rating", "writer", "studio", "mpaa", "premiered", "album" ] }, "id": 1}' http://xbmc:xbmc@localhost:8080/jsonrpc
hotlobster Wrote:Here is the xbmc log when i click on movie title:
Code:DEBUG: Time to retrieve movies from dataset = 11
11:28:18 T:2956897136 M:801865728 DEBUG: GetSetsNav query: SELECT sets.idSet,sets.strSet,COUNT(1) AS c,count(files.playCount) FROM sets JOIN setlinkmovie ON sets.idSet=setlinkmovie.idSet JOIN movie ON setlinkmovie.idMovie=movie.idMovie JOIN files ON files.idFile=movie.idFile GROUP BY sets.idSet HAVING c>1
11:28:18 T:2956897136 M:801865728 DEBUG: GetMoviesByWhere query: select * from movieview WHERE movieview.idMovie NOT IN (SELECT idMovie FROM setlinkmovie s1 JOIN(SELECT idSet, COUNT(1) AS c FROM setlinkmovie GROUP BY idSet HAVING c>1) s2 ON s2.idSet=s1.idSet)
11:28:18 T:2956897136 M:802500608 DEBUG: Time for actual SQL query = 4
11:28:18 T:2956897136 M:802070528 DEBUG: Time to retrieve movies from dataset = 163
11:28:20 T:2813418352 M:792879104 DEBUG: DoWork - took 222 ms to load special://masterprofile/Thumbnails/a/a38f1e2c.jpg
As you can see xbmc answered well, and send the according thumbnail too.
Here is a capture after clicking on a movie title:
I Use Mysql database for library. I'd like to catch the Json data mediafrontapge receive. Where in the code I could printf the json output for debug ?
case "rm": // Recent Movies
$request = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "sortorder" : "ascending", "fields" : [ '.$videodetailfields.' ] }, "id": 1}';
$results = jsoncall($request);
echo print_r($results,1);
$videos = $results['result']['movies'];