Posts: 11
Joined: May 2010
Reputation:
0
Working on a simple remote app and I'm trying to pull over the thumbnails generated for my videos. If I use the method VideoLibary.GetMovies then it returns a lovely blob of JSON represented videos, and one attribute is the "thumbnail" : "special://masterprofile/Thumbnails/Video/1/1a4eaf33.tbn"
But I'm not sure how to access this image in my application. Is there a method I'm not seeing to somehow send image data over the API? And also, how do I read a .tbn file in the first place (I've read up on it a bit on the Wiki but still not quite sure).
Any help would be greatly appreciated! Thanks.
Posts: 11
Joined: May 2010
Reputation:
0
Perfect! Works great, thanks very much.
Posts: 1,061
Joined: Sep 2004
Reputation:
1
Sounds Great.
I was wondering is there also a API for retreiving thumbnail's location in filesystem by giving the Movie's filename?
e.g. GetThumbnailURL("Cliffhanger (1993).iso"
This requires the XBMC to be running ofcource.
But how could I read the database by PHP and there ask what thumbnails are there for spesific movie?
Posts: 3,077
Joined: Jun 2009
2014-02-13, 23:02
(This post was last modified: 2014-02-13, 23:03 by Tolriq.)
Just read better
You need to URLEncode the image://E%3a%5cMusic%5c808%20State%20-%20Ninety%5cFolder.jpg/ part
(This gives :
http://htpc/image/image%3A%2F%2FE%253a%2...der.jpg%2F)
And use /image not /vfs
Posts: 2
Joined: Feb 2014
Reputation:
0
Thanks Tolriq. That works!.... I should have posted earlier and saved the hours I've spent trying to get this to work myself.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
By the looks you're missing a double URL encode on the first. i.e. the URL is url_encode(image://url_encode(smb://blah/))
As always, pass in the (url encoded) URL you get from JSON-RPC.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
The second one only works because it directly accesses the original artwork on your samba share. But the idea behind image:// URLs is that you access a locally cached version of the artwork which should be faster and also works for HTTP sources etc.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.