get movie id from imdbnumber json rpc

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
thecubical Offline
Junior Member
Posts: 33
Joined: Apr 2009
Reputation: 0
Post: #1
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?
find quote
Mizaki Offline
Fan
Posts: 662
Joined: Apr 2011
Reputation: 12
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 }
as an example of just viewing a single methods info.

[Image: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
Montellese Online
Team-XBMC Developer
Posts: 2,789
Joined: Jan 2009
Reputation: 20
Location: Switzerland
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.

[Image: badge.gif]
find quote
thecubical Offline
Junior Member
Posts: 33
Joined: Apr 2009
Reputation: 0
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 Online
Team-XBMC Developer
Posts: 2,789
Joined: Jan 2009
Reputation: 20
Location: Switzerland
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.

[Image: badge.gif]
find quote