Getting TV show fan art from the JSONRPC API

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jbrennan Offline
Junior Member
Posts: 11
Joined: May 2010
Reputation: 0
Post: #1
I can't seem to find out how to get fan art for tv shows over the JSON RPC. Does anyone know how to do this? I can pull the poster banners for the tv series themselves, but fan art I can't seem to figure out
find quote
cptbucky Offline
Junior Member
Posts: 3
Joined: Mar 2012
Reputation: 0
Post: #2
I'm trying to do something similar with movies, how did you get the poster banners? i look at the fanart property of a movie and it gives me a local path, i then try Files.Download and it tells me that it doesn't recognise the Method...

can anyone help with getting images off of the api??
find quote
Mizaki Offline
Fan
Posts: 683
Joined: Apr 2011
Reputation: 13
Post: #3
Example TV show call:
Code:
{"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "properties": ["genre", "plot", "title", "originaltitle", "year", "rating", "thumbnail", "playcount", "file", "fanart"],  "id": 1}

The easiest way to display the images is to use the vfs that the above returns (although you may need to use Files.PrepareDownload at a later date). Example:
Code:
http://<ip>:8080/vfs/special://masterprofile/Thumbnails/Video/5/5352a6cc.tbn

Lots more examples https://github.com/frolick/AWX-Eden/blob...ib.xbmc.js

[Image: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
cptbucky Offline
Junior Member
Posts: 3
Joined: Mar 2012
Reputation: 0
Post: #4
That is very cool! Thank you very much for your prompt response Mizaki, i've just tried it and all is working well.
find quote