I have a problem, when trying to create a menu item, that is not a video, but I want a custom fanart background and icon for it and also a description under the thumbnail as you can see on this image. How is that done correctly, not having to set the info type to video?
This is what I’m doing now.
Code:
def addDir(name,url,mode,iconimage,fanart,description):
u=sys.argv[0]+"&name="+urllib.quote_plus(name)+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&iconimage="+urllib.quote_plus(iconimage)+"&fanart="+urllib.quote_plus(fanart)+"&description="+urllib.quote_plus(description)
ok=True
liz=xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
liz.setInfo(type="Video", infoLabels={"Title": name, "Plot": description})
liz.setProperty("fanart_image", fanart)
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=False)
return ok