Your 2nd Add-On: Online Videos!
#16
(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.
Reply


Messages In This Thread
Your 2nd Add-On: Online Videos! - by zag - 2015-11-20, 15:28
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-11-20, 15:33
RE: Your 2nd Add-On: Online Videos! - by learningit - 2015-12-05, 21:43
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-11-30, 14:42
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-12-01, 12:58
RE: Your 2nd Add-On: Online Videos! - by zag - 2016-01-18, 14:37
RE: Your 2nd Add-On: Online Videos! - by pa79 - 2020-09-09, 19:59
Logout Mark Read Team Forum Stats Members Help
Your 2nd Add-On: Online Videos!2