Possible to use http path with setThumbnailImage in add on?
#1
In a video addon, I'd love for a directory listing of shows to be able to pull the appropriate thumbnail image from an http location vs. a local location (this is in the context of the SageTV addon I'm helping with).

Is there a way to somehow set a thumbnail to a http path? I am using setThumbnailImage just fine with locally based image files... but I can't get it to work when passing in an http path.

Maybe there's a way to "cache" or download the image from the URL first somehow and then point to that local path? Maybe there's another way?

Thoughts?

PS I'm using Frodo alpha 4 on Windows 32 bit
Reply
#2
Just popping the http URL in setThumbnailImage should work fine.
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
Reply
#3
It usually takes a few seconds to show up while Xbmc downloads and caches the image. Make sure you wait a min, go to another item, then come back. Usually does the trick for me
Reply
#4
In looking at the log below, it looks like it is having issues saving the cached thumnail from http (I use a mysql server on my NAS to store the thumbnails but it doesn't require a username/password). Thoughts?

06:21:13 T:6984 DEBUG: Caching image 'http://<HIDINGMYSAGEURL>/sagex/media/poster/6592996' to '2/2c2f9c56.jpg':
06:21:13 T:6984 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-51.dll)
06:21:13 T:6984 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/swscale-2.dll)
06:21:13 T:6984 DEBUG: ffmpeg[1B48]: [swscaler] Warning: data is not aligned! This can lead to a speedloss
06:21:13 T:6984 DEBUG: cached image 'special://masterprofile/Thumbnails/2/2c2f9c56.jpg' size 490x720
06:21:13 T:6984 DEBUG: Trying to connect to \\nas\storage with username() and password(XXXX)
06:21:13 T:6984 ERROR: CWINFileSMB: Unable to open file for writing '\' Error '3
06:21:13 T:6984 DEBUG: Trying to connect to \\nas\storage with username() and password(XXXX)
06:21:13 T:6984 ERROR: CWINFileSMB: Unable to open file for writing '\' Error '3
06:21:13 T:6984 DEBUG: msg: PICTURE::CreateThumbnailFromSurface: Unable to save thumb to special://masterprofile/Thumbnails/2/2c2f9c56.jpg
Reply
#5
Bump... thoughts on the above log? I am able to open the "\\nas\storage" location on that PC with no issues but for some reason XBMC can't write to it.
Reply
#6
don't mind if I ride on this thread but HTTP website does work li=xbmcgui.ListItem("1",iconImage="DefaultVideo.png", thumbnailImage="http://s3.amazonaws.com/cash_users/kristinhersh/Speedbath/Static/Static_300dpi.jpg")

I need help for a similar case as well. XBMC is not able to extract image files from aspx it seems.
http://img1.catalog.video.msn.com/Image....h=300&so=4

CTextureCacheJob::GetImageHash - unable to stat url http://img1.catalog.video.msn.com/Image....h=300&so=4

any idea if there's a workaround?
Reply

Logout Mark Read Team Forum Stats Members Help
Possible to use http path with setThumbnailImage in add on?0