I'm trying to figure out how to get the xbmc movie id from the json api.
I haven't done much with json rpc before but I have the following so far:
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "items": {"imdbnumber": "tt1232829"},"id": "1"}
This seems to be retrieving all the movies instead of ones that match by imdbnumber, is there something I'm doing wrong?
get movie id from imdbnumber json rpc
thecubical
Junior Member Posts: 33 Joined: Apr 2009 Reputation: 0 |
2012-07-03 12:02
Post: #1
|
| find quote |
Mizaki
Fan Joined: Apr 2011 Reputation: 12 |
2012-07-03 17:38
Post: #2
VideoLibrary.GetMovies get all movies. See http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v4 and JSONRPC.Introspect for commands and options.
Code: { "jsonrpc": "2.0", "method": "JSONRPC.Introspect", "params": { "filter": { "id": "Player.Seek", "type": "method" } }, "id": 1 } |
| find quote |
Montellese
Team-XBMC Developer Joined: Jan 2009 Reputation: 20 Location: Switzerland |
2012-07-03 17:42
Post: #3
What version of XBMC are you using? Considering the request you posted and the statement that it worked leads me to guess that you use Dharma (10.0)? If you want to use JSON-RPC you really should update to Eden (11.0).
Concerning your specific question for only retrieving the movie with a specific imdbnumber, this is not possible right now (neither in Dharma nor in Eden). JSON-RPC does not yet have a filtering functionality for these calls which let you specify certain conditions an item has to meet. But this will be added in the future (probably as part of my GSoC project). Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
thecubical
Junior Member Posts: 33 Joined: Apr 2009 Reputation: 0 |
2012-07-04 01:35
Post: #4
im using a nightly of frodo, hope to see that functionality added in the future.
What exactly is your GSoC project aimed at, any links, im curious to read up |
| find quote |
Montellese
Team-XBMC Developer Joined: Jan 2009 Reputation: 20 Location: Switzerland |
2012-07-04 09:33
Post: #5
It's about advanced filtering options in the library views (see http://forum.xbmc.org/showthread.php?tid=127885). While this is primarily focused on filtering in the GUI I hope that I can also introduce a similar functionality (probably with even more possibilities) to JSON-RPC.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |

![[Image: watched-clearlogo.jpg]](http://trakt.tv/user/jinxy/widget/watched-clearlogo.jpg)

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help