PDA

View Full Version : Set Fanart for items in plugins?


rwparris2
2008-12-21, 23:24
Is it possible to set fanart for items in plugins? You can set fanart for the entire plugin, but what about for each individual item?

spiff
2008-12-22, 00:41
it should be able to tap into the same code as the movie fanart one. so set the fanart_image property i think it should work

rwparris2
2008-12-26, 07:25
I can't get this to work. It definitely isn't in python docs and I can't find where to look for it in source.

I've tried both of the following:


liz=xbmcgui.ListItem(name, iconImage=icon, thumbnailImage=thumb, fanart_image=fanart)

liz=xbmcgui.ListItem(name, iconImage=icon, thumbnailImage=thumb fanartImage=fanart)


and various capitalization differences in them, but I always get the same error:

00:23:29 T:3688 M:408256512 NOTICE: liz=xbmcgui.ListItem(name, iconImage=icon, thumbnailImage=thumb, fanartImage=fanart)
00:23:29 T:3688 M:408256512 NOTICE: TypeError
00:23:29 T:3688 M:408256512 NOTICE: :
00:23:29 T:3688 M:408256512 NOTICE: 'fanartImage' is an invalid keyword argument for this function
00:23:29 T:3688 M:408256512 NOTICE:
00:23:29 T:3688 M:408256512 ERROR: Scriptresult: Error



anyone have any hints?

jmarshall
2008-12-26, 08:43
It's a property that you need to set.

rwparris2
2008-12-27, 23:45
Thanks guys!
I should have realized spiff ment setProperty when he said "set the fanart_image property"

It is too bad we don't have an emoticon for facepalm. :rolleyes:

If anyone else comes across this you want:

item.setProperty('fanart_image',fanart)

nate12o6
2008-12-29, 08:36
It would be nice to have a list of item properties we can set.