Pulling thumbnails via JSONRPC API
#16
(2014-03-25, 10:09)pbsask Wrote:
(2014-03-24, 08:50)jmarshall Wrote: 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.

Thanks you are correct, I had url decoded the artwork url before adding the image:// portion. Its working fine now Smile

I struggling to figure this one out... what is the correct complete URL string please...

My JSOn string returns this:
Code:
"thumbnail":"image://smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/",

I have tried this:
Code:
http://192.168.0.103/image/image://smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/

and

I have tried this:
Code:
http://192.168.0.103/image/image://url_encode(smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/)
and
http://192.168.0.103/image/url_encode(simage://url_encode(smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/))

None work... Any help is greatly appreciated.



Many thanks,

Hernando
Image
Reply
#17
(2014-04-26, 16:57)hernandito Wrote: I struggling to figure this one out... what is the correct complete URL string please...

My JSOn string returns this:
Code:
"thumbnail":"image://smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/",

I have tried this:
Code:
http://192.168.0.103/image/image://smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/

and

I have tried this:
Code:
http://192.168.0.103/image/image://url_encode(smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/)
and
http://192.168.0.103/image/url_encode(simage://url_encode(smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/))

None work... Any help is greatly appreciated.



Many thanks,

Hernando

All of these are wrong. The correct one should be
Code:
http://192.168.0.103/image/url_encode(image://smb%3a%2f%2fTOWER%2fMedia%2fMovies%2fEnemy%20(2014)%2fEnemy.tbn/)
which is also the simplest of all. You take what you get from JSON-RPC, you URL encode the whole thing (no parsing or anything) and you append it to the URL of your XBMC machine.
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.
Reply
#18
Thank you Montellese... After trying a few things... I finally came up with a solution thanks to your help.

I am doing it in php... so my code looks something like:

Code:
I have code here that parses the JSON...
$hrthumbnail = $result[$i]['thumbnail'];
$hrthumbnail2 = urlencode($hrthumbnail);

echo "<img src=\"http://192.168.0.103/image/{$hrthumbnail2}\" height=100>";

I hope this helps others.... I love the posibilities this opens up.

Many thanks again,

Hernando
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Pulling thumbnails via JSONRPC API0