2008-08-02, 12:36
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:
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.
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.