2012-01-25, 12:02
Thanks very much for this usefull answer.
I'm running Eden beta 2.
I'm running Eden beta 2.
json_query = xbmc.executeJSONRPC('{"jsonrpc": "3.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["file", "fanart", "thumbnail"]}, "id": 1}')
JSONRPC: Failed to parse '{"id":1,"jsonrpc":"3.0","method":"VideoLibrary.GetMovies","params":{"properties":["file","fanart","thumbnail"]}}'
json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["file", "fanart", "thumbnail"]}, "id": 1}')
Mizaki Wrote:Does VideoLibrary.GetMovieSets ignore movie sets that only contain 1 movie?
themoviedb scrapper seems to fetch the set info for movies now. I added a movie that is part of a set. If I retrieve the movie info details I get a setid of 10. GetMovieSets does not return that id. In the DB it is there linked to the movie id as expected.
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params" : { "directory" : "special://profile/playlists/video/tv.xsp", "media" : "video", "properties": ["artist", "album", "showtitle", "episode", "season"] }, "id": 1}
{"album":"","artist":"","episode":14,"file":"/mnt/nanika/TV2/The Big Bang Theory/","filetype":"directory","id":342,"label":"The Big Bang Theory","season":-1,"showtitle":"The Big Bang Theory","type":"unknown"}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
<name></name>
<match>all</match>
<rule field="none" operator="contains"></rule>
<limit>10</limit>
<order direction="ascending">random</order>
</smartplaylist>
Mizaki Wrote:That makes sense but should getmoviedetails return a set then? May seem a silly question but this is the problem:
Request movie details.
Returns setid.
Query movie set details by setid.
Errors.
I have to therefore verify the movie set details. Which I can do but seems a little non-intuitive.
Quote:01:49:42 T:12112 DEBUG: JSONRPC: Incoming request: User-Agent: Dalvik/1.4.0 (Linux; U; Android 2.3.6; GT-I9100 Build/GINGERBREAD)with the exact same code on second earlier :
Host: 192.168.0.11:90
Connection: Keep-Alive
Content-Length: 665
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
01:49:42 T:12112 ERROR: JSONRPC: Failed to parse 'User-Agent: Dalvik/1.4.0 (Linux; U; Android 2.3.6; GT-I9100 Build/GINGERBREAD)
Host: 192.168.0.11:90
Connection: Keep-Alive
Content-Length: 665
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
Quote:01:49:41 T:12112 DEBUG: JSONRPC: Incoming request: {"id":1,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
01:49:41 T:12112 DEBUG: JSONRPC: Calling player.getactiveplayers