Specify path to local image
#1
Code:
iconPath = os.path.join('resources', 'media', 'example1.png')
li = xbmcgui.ListItem('Exampl1 Video', iconImage=iconPath)


Icon for video is still not showing up. the image is a 256x256 png.
Reply
#2
you need to specify the full path, not the relative path.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(2015-05-02, 01:26)ronie Wrote: you need to specify the full path, not the relative path.

Is there some way to get at the base directory of the addon? I have no idea what the path would be.

I've tried this, but that doesnt' work either:

Code:
iconPath = 'plugin://plugin.video.example/resources/media/example1.png'
li = xbmcgui.ListItem('Video1', iconImage=iconPath)
Reply
#4
xbmcaddon.Addon().getAddonInfo('path')
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
That was it. Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Specify path to local image0