Can Skin.SetAddon show anything but program add-ons?
#1
I have customizable buttons on Shades home screen (see below) BUT I can only allow users to pick from program addons via the skin.setaddon command.

I want users to be able to pick things like Apple Movie Trailers or other video or music addons. Is this possible?

Image
Image
To learn more, click here.
Reply
#2
For Add-ons -
PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.pluginsource)</onclick
Reply
#3
Hitcher Wrote:For Add-ons -
PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.pluginsource)</onclick

This is what I have now but it only allows me to pick "program add-ons" it pops up a list and the list doesnt include things like apple movie trailers or imdb or anything like that.
Image
To learn more, click here.
Reply
#4
there is indeed an issue here, you cannot specify subtypes. will remedy.
Reply
#5
An all inclusive list would be a great solution. Skin.GetAddon should bring up a list that is populated with all possible add-ons that are installed. Just a thought. Thanks for looking into this.
Image
To learn more, click here.
Reply
#6
igotdvds Wrote:This is what I have now but it only allows me to pick "program add-ons" it pops up a list and the list doesnt include things like apple movie trailers or imdb or anything like that.

Are you sure? it's working for me.

Using that open up all the Add-ons that are plugins and

PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.script)</onclick

opens all the scripts.
Reply
#7
Hitcher Wrote:Are you sure? it's working for me.

Using that open up all the Add-ons that are plugins and

PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.script)</onclick

opens all the scripts.

I am sure. For me it only brings up add-ons that are found in the "program add-ons" section.

Now let me point out Apple Movie Trailers is a plugin not a script. Does this matter?
Image
To learn more, click here.
Reply
#8
Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.video)</onclick>


isn't that the way it works?
Reply
#9
ppic Wrote:
Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.video)</onclick>


isn't that the way it works?

Thats the way it should work.

Let me go simple.

If I install Apple movie trailers from within xbmc. If I click the button that is set to Skin.SetAddon (like above), Apple movie trailers is not in the list to select. I can click, GET MORE, and go to Video Add-ons and see Apple Movie Trailers, but its not in the list to choose from.
Image
To learn more, click here.
Reply
#10
Did you check the code in Revisited?

EDIT: I've just checked your SVN and you're using -

PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.script)</onclick
when you should be using -

PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.pluginsource)</onclick
Reply
#11
Hitcher Wrote:Did you check the code in Revisited?

EDIT: I've just checked your SVN and you're using -

PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.script)</onclick
when you should be using -

PHP Code:
<onclick>Skin.SetAddon(NAME_OF_BUTTON,xbmc.python.pluginsource)</onclick

The bottom one shows me plugins but not scripts. Can we not show both?
Image
To learn more, click here.
Reply
#12
Not that I know of, I simply use scripts for the Programs sections and plugins for the rest.

In you case I'd have a Script or Plugin selection in the Settings.
Reply
#13
Hitcher Wrote:Not that I know of, I simply use scripts for the Programs sections and plugins for the rest.

That looks to be the answer then, two different sets of buttons. Thanks Hitcher even though it was bad news.
Image
To learn more, click here.
Reply
#14
igotdvds Wrote:If I install Apple movie trailers from within xbmc. If I click the button that is set to Skin.SetAddon (like above), Apple movie trailers is not in the list to select. I can click, GET MORE, and go to Video Add-ons and see Apple Movie Trailers, but its not in the list to choose from.

well, DUH! it's not showing shit you haven't enabled mate.
Reply
#15
showing both would be useless. they cannot be run in the same way. one is a script and needs RunScript. the other is a directory and use a GetDirectory call.
Reply

Logout Mark Read Team Forum Stats Members Help
Can Skin.SetAddon show anything but program add-ons?0