2015-12-07, 13:36
(2015-12-05, 21:43)learningit Wrote:(2015-11-30, 13:40)Roman_V_M Wrote:(2015-11-21, 23:56)Martijn Wrote: Seems used code is outdated although it still works.
Should now be done with
.setArt({ 'thumb': iconimage, 'banner' : os.path.join(artfolder,'banner.png'), 'fanart': os.path.join(addonfolder,'fanart.jpg') }) liz.setPath(u)
Code above is sample snippet and needs to be adjusted for use
What is outdated in it? Yes, setArt now provides an alternative way to set item's fanart along with other graphics, but unless there are some serious plans to depreciate setProperty('fanart_image', '/path/to/fanart.jpg') method, using setProperty for fanart is totally legit IMO.
I don't think Martijn was singling out the setProperty call for fanart. According to this: Jarvis_API_changes (wiki) the setting of "thumbnailImage" as a parm on the xbmcgui.ListItem init call is deprecated in Jarvis and setArt() needs to be used instead.
Thanks for the information. Indeed, setArt is going to be the only way to deal with ListItem images, and I think it will be better than having several overlapping methods.