Posts: 17,858
Joined: Jul 2011
Reputation:
371
Due to recent changes in the add-on handling we can't disable any add-on any more which is a dependency of another add-on/skin.
This has some advantages however one disadvantage is we are now stuck with a bunch of add-ons that are forced upon us by skins which i may have no use for at all and want to disable them.
The only hack around is to uninstall the skin again. Disable the add-on en reinstall the skin. Although this shouldn't even by possible because the skin depends on it and you have it disabled.
Other way round is to just delete it bu then again on each update you get it back again.
For scrapers we have the optional="true" tag in addon.xml so maybe this should be allowed for skins as well?
Posts: 31,445
Joined: Jan 2011
I thought this was already possible? For example, Confluence can use YouTube for Trailers or TvTunes when browsing TV shows, but neither won't be installed unless those options are turned on.
Posts: 17,858
Joined: Jul 2011
Reputation:
371
2013-12-21, 20:43
(This post was last modified: 2013-12-21, 20:43 by Martijn.)
they are not installed as a dependency by the skin. if they would they can't be disabled any more.
Posts: 31,445
Joined: Jan 2011
2013-12-21, 21:19
(This post was last modified: 2013-12-21, 21:20 by Ned Scott.)
Yes, but the point being that it is already possible for skins to make such add-ons optional and installed as needed. While this requires the skinner to put in extra work to give such an option, I would think it would be the more advisable solution.
Posts: 31,445
Joined: Jan 2011
2013-12-21, 21:50
(This post was last modified: 2013-12-22, 01:18 by Ned Scott.)
There's no reason to get upset. No hostility was intended.
A better response would be "that's one way to do look at it, but I'm talking about another method. Here's why it's different."
Part of these discussions are to help each other understand the root issue. If you don't want to explain it, no worries.
Posts: 26,215
Joined: Oct 2003
Reputation:
186
They can already use optional="true". You should then be able to disable it.
Posts: 16,946
Joined: Feb 2011
Reputation:
256
Realised the Same - aeon mq5 Installs lot of Service addons an even if i didn't use that Skin i Could not disable those Services as they are dependencies of that Unused Skin...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 26,215
Joined: Oct 2003
Reputation:
186
Yeah - the problem is as follows:
1. Skins (or any add-on) can use optional="true" if they wish to specify an optional add-on. If this happens, the add-on is downloaded on install only if we already have the add-on and it's out of date. If we don't have the add-on, it's not downloaded as it's optional.
2. Skins (or any add-on) want their optional add-ons downloaded by default, as they want users to get the full experience. So, due to 1, they don't specify the optional flag, as otherwise the extras don't get downloaded.
3. If an add-on A is a non-optional dependency of add-on B then it can't be disabled until add-on B is first disabled.
There's several proposals to remedy this.
1. Install optional deps by default. Simple counter-example here is themoviedb.org scraper is optionally dependent on youtube. (To be honest, it doesn't need to be - it doesn't actually use youtube, rather it generates youtube URLs directly and youtube add-on can later be used for these).
2. Have a middle ground, where add-ons can specify optional="recommended" or something, whereby those are installed by default.
These will solve the problem in that you'll be able to disable them. However, it won't really solve the issue that all this stuff is installed by default, when some of them may not be used. e.g. some skins install the tvtunes service, which will be running from then on, regardless of what skin you use, until you disable it.
Ideally there'd be much more user-control over this. e.g. when you install something with optional deps, you're prompted to enable/disable which ones you want. Problem here is how to handle auto-updates - it's not clear to me that prompting is the way to go.
Suggestions most welcome!
Cheers,
Jonathan
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Are features like TvTunes etc (not Skin Widgets) enabled by default by a skin? If not maybe it would make sense to automatically download them when the user enables the specific setting?
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 26,215
Joined: Oct 2003
Reputation:
186
The first one sounds like a bug (TV Show Next Aired couldn't be installed) - please let me know which skins to play with to get this to happen.
As I say, the annoyance of auto-install is really due to the things being enabled, not being installed. The trouble is that it's difficult to figure out when to enable service add-ons (this is what these are, right?) - atm we just run them on startup. This makes sense for normally installed services, but may not make sense for many of the add-ons currently setup as services. Perhaps they should simply be script libraries that are called on demand from the skin instead in some way?
Alternatively we could have some per-service setting as to when to start them, and then have skins start the ones they need somehow on skin load. For this we'd need some XML or some such for defining when things start and when they don't.
Cheers,
Jonathan