Listitem and SetArt in Addon
#1
Trying to get artwork working in my addon currently.

I see xbmcgui.ListItem.setArt({ 'poster': 'poster.png', 'banner' : 'banner.png' })


But is there a 'getArt' method, or is there a getProperty method that will show what the art is currently set to?

In addition, is there a way to set the art thats defined in the setArt method with setProperty?

I see that I can listitem.setProperty( "icon", thumb ), listitem.setProperty( " fanart_image", fanart ), etc. so I would think it's possible. Or for some reason are some arts not settable / gettable as properties?

Thank you!
Reply
#2
No, there is no getArt method or its equivalent. As for setProperty method, fanart is the only image type can be set with it. In fact, setProperty supports only a limited number of pre-defined settings: https://github.com/xbmc/xbmc/blob/master...m.cpp#L173
Reply

Logout Mark Read Team Forum Stats Members Help
Listitem and SetArt in Addon0