Kodi Community Forum
Fanart image in addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Fanart image in addon (/showthread.php?tid=137264)



Fanart image in addon - Tomas - 2012-07-31

Hello,
Is it possible to somehow add fanart image in python ListItem?
If you are in every video plugin, you will get always the same video background and I am sick of it.

Code:
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
liz.setInfo( type="Video", infoLabels={ "Title": name } )
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=True)



RE: Fanart image in addon - divingmule - 2012-07-31

Code:
liz.setProperty("Fanart_Image", 'PATH/TO/FANART')