GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Addon shortcuts should act like going to addons sub-menu and selecting the addon for the particular menu it is assigned to (so that views work properly when an addon has more than 1 provides type).
Is this related to: http://forum.xbmc.org/showthread.php?tid=131358 - and/or will it fix this??
It will make using the home menu addon shortcuts operate like running the addon from programs (or the associated addon sub-menu). I will currently argue that the addon shortcuts for the home menu are currently broken for the following reasons:
[Confluence] Addon shortcuts should act like going to addons sub-menu…
… and selecting the addon for the particular menu it is assigned to (so that views work properly when an addon has more than 1 provides type).
Sorry this took so long ..
I really don't like this because it breaks being able to assign program addons/scripts to the other windows. The issue you speak of is a side effect of addons being able to do more than 1 content type that was changed recently. It forces the addon to run in the wrong window. I have noticed this with the twit.tv addon that it always tends to run in the music window even though its pretty much all video.
@cptspiff you have any idea on how to compensate for this (since you made runaddon) because the whole point of RunAddon was so the skinner does not need to have to think about this kind of stuff and could just run them from anywhere in the skin and not care
The fix is wrong for scripts I think?
If you know the preferred content type, then the preferred content type could be specified in RunAddon() I guess.
that works nice for confluence that separates them out in home, but when you get other skins like "Touched" that just has 1 big list of favourite addons it fails because people can set any addon type and I have no idea what one it is meant to be
I really think the only fix here is either
don't let addons be for multiple types, why they are anyway seems silly to me but I guess it cuts down on dupe code if they actually get coded properly (the twit.tv one does not as it shows video feeds in the music sections)
make addons have a default content type that they show in which is probably as easy as setting the correct order in the tag
as Jezz_X suggested, this should be fixed elsewhere.