xbmcswift2: local image
#1
Question 
Using xbmcswift2, is there a way to get the local resource path?

Looking at the api, I can't seem to figure out how I can assign a local image as thumbnail.

Trying to do it using xbmcaddon.Addon(id='plugin.video.name').getAddonInfo('path') just brings up "unavailable"

Please help.
Thanks!
Reply
#2
(2013-08-03, 22:05)icharania Wrote: Using xbmcswift2, is there a way to get the local resource path?

Looking at the api, I can't seem to figure out how I can assign a local image as thumbnail.

Trying to do it using xbmcaddon.Addon(id='plugin.video.name').getAddonInfo('path') just brings up "unavailable"

Please help.
Thanks!

PHP Code:
addon_id plugin._addon.getAddonInfo('id')
icon 'special://home/addons/%s/icon.png' addon_id 
See here for an example.

Btw, if you use xbmcswift you should not use the "original" xbmcaddon module to create your own instance, xbmcswift already creates one (Plugin_instance._addon)
My GitHub. My Add-ons:
Image
Reply
#3
(2013-08-04, 23:20)sphere Wrote:
PHP Code:
addon_id plugin._addon.getAddonInfo('id')
icon 'special://home/addons/%s/icon.png' addon_id 
See here for an example.

Btw, if you use xbmcswift you should not use the "original" xbmcaddon module to create your own instance, xbmcswift already creates one (Plugin_instance._addon)

Thanks!
I'll give it a shot!
Reply

Logout Mark Read Team Forum Stats Members Help
xbmcswift2: local image0