Kodi Community Forum

Full Version: Skin.SetAddon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys

I would like to use skin.setaddon but without specifying the type , so user can decide on his/her own.

I have tried

Skin.SetAddon(Addon1,) Skin.SetAddon(Addon1) Skin.SetAddon(Addon1,xbmc.addon)

without success.

Surely I'm doing something wrong?
pecinko Wrote:Hi guys

I would like to use skin.setaddon but without specifying the type , so user can decide on his/her own.

I have tried

Skin.SetAddon(Addon1,) Skin.SetAddon(Addon1) Skin.SetAddon(Addon1,xbmc.addon)

without success.

Surely I'm doing something wrong?
May be something like this:

Skin.SetAddon(Addon1, xbmc.python.pluginsource)
or
Skin.SetAddon(Addon1-scriptpath,xbmc.python.pluginsource)
Well, than I suppose it's not possible.
Not sure exactly what you're after. Perhaps describe what you want to achieve?
Sure. I have a section on home screen similar to "system" in confluence. I would like to provide a possibility for a user to make shortcuts to addons of his choice (again similar to Confluence). I would like however to give user a possibility to choose what type of addon to assign, so instead of forcing, say, video type with xbmc.addon.video - I should use?