Posts: 321
Joined: Jan 2009
Reputation:
0
2012-08-24, 03:10
(This post was last modified: 2012-08-24, 03:26 by LehighBri.)
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
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Just popping the http URL in setThumbnailImage should work fine.
Posts: 793
Joined: Oct 2010
Reputation:
17
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
Posts: 321
Joined: Jan 2009
Reputation:
0
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
Posts: 321
Joined: Jan 2009
Reputation:
0
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.