Set Fanart for items in plugins?
#1
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?
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#2
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
Reply
#3
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:

Code:
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:

Quote: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?
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#4
It's a property that you need to set.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
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)
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#6
It would be nice to have a list of item properties we can set.
Reply

Logout Mark Read Team Forum Stats Members Help
Set Fanart for items in plugins?0