XBMC Community Forum
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (/forumdisplay.php?fid=174)
+---- Thread: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263)



Access Thumb URL - redtapemedia - 2010-12-22 14:56

I'm currently writing a perl script for email notification and was wondering if there's a way to access the URL for the episode thumb. When I look in the SQL database, the information is there in c06, I'm just not sure if it's possible to extract via JSON RPC. The SQLite DB contains:

Code:
<thumb>http://thetvdb.com/banners/episodes/75978/534591.jpg[/b]</thumb>

What I get from the default query:

Code:
special://masterprofile/Thumbnails/Video/8/8ada3962.tbn.

The thumb that's currently pulled is the local .tbn

Code:
my $callobj = {
  'method'  => 'VideoLibrary.GetRecentlyAddedEpisodes',
  'params'  => { 'fields'=>['plot','rating','showtitle','season','episode','firstaired'] },    
  id  => "1",
  jsonrpc => "2.0",
};



- SVLD - 2010-12-22 18:53

is it possible to show notification window, using JSONRPC in XBMC?

I mean, where is replacement of builtin function "notification"?


- Montellese - 2010-12-22 21:52

SVLD Wrote:is it possible to show notification window, using JSONRPC in XBMC?

I mean, where is replacement of builtin function "notification"?

Currently this is not supported. Check Trac if there already is a ticket for it and if not create one and mention the functions you think are missing.


- KnisterPeter - 2010-12-22 23:12

Is there a way to control the tv-plugins? I know they are not in trunk but should be merged soon, so it would be awesome to have them supported :-)


- Montellese - 2010-12-22 23:24

KnisterPeter Wrote:Is there a way to control the tv-plugins? I know they are not in trunk but should be merged soon, so it would be awesome to have them supported :-)

What do you mean by "tv-plugins"? The PVR functionality which is being developed in the pvr testing branch? If so the roadmap of XBMC states that it won't even make it into the next major release (Eden) so it does not look like it will be merged into trunk "soon" (depending on the definition of soon).


- KnisterPeter - 2010-12-22 23:28

Oh... yes, I meant the PVR, but I was not aware that it will not be in 'Eden'... what a pitty. Sad


- PWiddershoven - 2010-12-23 16:11

I can't seem to figure out what arguments VideoPlayer.SeekTime() should have. According to the docs it should just require a integer argument, but that doesn't seem to work. I keep getting:

Code:
jsonrpclib.jsonrpc.ProtocolError: (-32602, 'Invalid params.')

Any ideas?


- jitterjames - 2010-12-23 16:16

PWiddershoven Wrote:I can't seem to figure out what arguments VideoPlayer.SeekTime() should have. According to the docs it should just require a integer argument, but that doesn't seem to work. I keep getting:

Code:
jsonrpclib.jsonrpc.ProtocolError: (-32602, 'Invalid params.')

Any ideas?

It's just a wild guess on my part, but did you try something like mmConfuseds ?

e.g: 12:15

I realize that's not what is in the specs but maybe worth a try...


- Montellese - 2010-12-23 16:26

PWiddershoven Wrote:I can't seem to figure out what arguments VideoPlayer.SeekTime() should have. According to the docs it should just require a integer argument, but that doesn't seem to work. I keep getting:

Code:
jsonrpclib.jsonrpc.ProtocolError: (-32602, 'Invalid params.')

Any ideas?

SeekTime() should take a single integer. Can you please post the JSON request you send?


- PWiddershoven - 2010-12-23 17:29

jitterjames Wrote:It's just a wild guess on my part, but did you try something like mmConfuseds ?

e.g: 12:15

I realize that's not what is in the specs but maybe worth a try...

Nope doesn't work either.

Montellese Wrote:SeekTime() should take a single integer. Can you please post the JSON request you send?

This is the request I'm sending (using jsonrpclib):

Code:
{"jsonrpc": "2.0", "params": [10], "id": "gfc5nrn0", "method": "videoplayer.seektime"}