2010-11-23, 23:20
Hello Community
while writing plugins i'am suffering a "strange" problem with the "thumbnail-cache"
see the following code:
if i run this code, both items Test and Test1 displays the same picture, depending on what item catch the "mouse-over" first. Internally it seems that the booth Picture-Links leads to the same hash value... my only attempt to get around this, is downloading the thumbnails by myself and storing it in the plugin-directory. Any better ideas?
while writing plugins i'am suffering a "strange" problem with the "thumbnail-cache"
see the following code:
Code:
import xbmc, xbmcgui, xbmcplugin,xbmcaddon, sys, urllib, os, time
xbmcgui.DialogProgress();
listItem=xbmcgui.ListItem("Test", iconImage="DefaultFolder.png", thumbnailImage="http://www.zdf.de/ZDFmediathek/contentblob/1191708/timg116x54blob/3888592")
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url="noone",listitem=listItem,isFolder=True)
listItem=xbmcgui.ListItem("Test1", iconImage="DefaultFolder.png", thumbnailImage="http://www.zdf.de/ZDFmediathek/contentblob/1197638/timg116x54blob/3913562")
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url="noone",listitem=listItem,isFolder=True)
xbmcplugin.endOfDirectory(int(sys.argv[1]))
if i run this code, both items Test and Test1 displays the same picture, depending on what item catch the "mouse-over" first. Internally it seems that the booth Picture-Links leads to the same hash value... my only attempt to get around this, is downloading the thumbnails by myself and storing it in the plugin-directory. Any better ideas?