Cannot show Thumbnails from Url's
#1
hi,
I'm writing a programs plugin and I have difficults with showing thumbs from url's.
I saw that Apple Movie Trailers Plugin does that and it works there.

Here is my code that creates that thumb list:
Code:
Code:
listitem = xbmcgui.ListItem( "%s (%s) " % (result["title"], result["url"]),
iconImage="DefaultProgram.png",
thumbnailImage=result["thumb"])                

xbmcplugin.addDirectoryItem( handle=int( self._handle ),
url="%s?%s/%s"  % (self._path, launcherName, romname),
listitem=listitem, isFolder=False, totalItems=total)

the result["thumb"] contains the url of the thumbnail image.
but the list appears with default icons instead of the thumbnail image.
I tried to cache them with "urllib.urlretrieve( result["thumb"] )" but it didn't work either.
Reply
#2
if your running this from the programs window, there is no background loader functionality.

look at the svn repo installer in the addons svn. look at the get_thumbnail().
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
thanks, i used get_thumbnail and it worked !
you are welcome to download my plugin:

http://forum.xbmc.org/showthread.php?p=2...post205616
Reply

Logout Mark Read Team Forum Stats Members Help
Cannot show Thumbnails from Url's0