Addon autoupdate mechanism
#1
Hi all,
I hope this is the proper section for this post.

I see that some addon do autoupdate and others do not, either they have been installed from repository or not, so I would like to better understand how the addon autoupdate mechanism actually works.

Where does Kodi exactly look at to know if a given addon has any update available? Is it an url in any .xml or what?


Please forgive in case this is a very common question, in that case I would appreciate a link and I'll go through that, thanks a lot.
Reply
#2
Add-on manager (wiki)

When an update to an add-on is available from the repository it will show up. By default, add-ons are set to update automatically, so this should normally be empty unless you have changed your preferences to prevent automatic update installs. If you have installed an add-on that is either not in the official repository ie: from a download (beta) zip from a forum page, then it's likely that add-on would not be in the official repository yet and would be considered an 'install at your risk' and hopefully the author would support that. Without support from a repository, the add-on will not get an up-date even if an update is available.

Kodi has been written to accommodate, multiple 3drd party repositories, and add-ons that are not in the official repository, they can be updated by this 3rd party repository. The use of these repositories are to facilitate testing of various add-ons or add-ons that don't meet the official specifications.
Reply
#3
Thanks for reply PatK. I understand that autoupdate is applicable and working only for addons having a repository associated with them. I wonder though, who give Kodi the information that an update is available? The repository? That's not clear to me, because repository in my mind is just a zip which is installed into Kodi exactly like a single addon, it does not seem to be linking to any reference url on the net. Do the repo keep any reference url inside it? That sounds a bit strange because the repo zip file has a given filename, generally related to its particular version (e.g. SAMPLEREPO_vX.Y) so when a new version of a given repo is available, its filename changes and you need to install a new zip. Isn't it?

I understand I have some confusion about that, that's why I would like to go a bit deeper into that.
Reply
#4
Repo you install in kodi are linked to an online source, repo are also automatically updated.
Reply
#5
(2016-10-05, 18:46)mac1202 Wrote: Repo you install in kodi are linked to an online source, repo are also automatically updated.

That's a good point. I've just gone through the addon.xml file of a repository zip file. Actually it does not contain any addon content, it only contains a sort of link to somewhere on the net. So I suppose that at some point Kodi pings that site and ask to that server if for any of the locally installed addons an update is available. If an update is found, Kodi downloads and installs it overwriting that particular addon and nothing changes at repository level. Does it make sense?

If that is correct, my doubt is: does each online repository keep a local copy of the addons "published" by it? I mean, if Exxxxx (just an example) is published by both repo A and repo B, does it mean that they could have two different Exxxx version? If so, I can I be sure to always have the latest addon version developed by the author?

[Edit prohibited add-on proper name]
Reply
#6
Goes by versions numbers, should you have the same, no update, highest rules and not updated unless set for auto.
Reply
#7
I recommend you disable auto updates if you have many repos for the same addon it is better you do the update manually in that case you can choose from which repo to update the addon
Reply
#8
(2016-10-06, 01:35)PatK Wrote: Goes by versions numbers, should you have the same, no update, highest rules and not updated unless set for auto.

Got it, that is clear, but my question is: if every repo on the "market" stores a local copy of that addon on its own server, how can one be sure that it is the latest possible version of that addon? Maybe another repo elsewhere has an higher version. Doesn't it exist a "reference" site for a given addon?
Reply
#9
Same answer applies - whichever one has the highest version number will be installed. If multiple repo's have the same version number, then it's first come first served.

This is in part why we strongly recommend you carefully think about what repo's you add to your system, as there is no sandboxing or isolation between them, between them and Kodi nor between Kodi and your system. So adding add-ons is very much like adding new programs or apps to your system. Adding repo's at random or ones that you don't fully know/trust the owner of is very much a security risk. It is also at least partially why certain of the "let's bundle everything together randomly in one huge repo without much checking and validation of sources" repos are on our banned add-ons (wiki) list.

See this blog for further discussion and information on this topic.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#10
Thanks DarrenHill. Actually it already happen to me to experiment the negative aspects of repos. I suppose that some kind of official "store" would be the best solution. Something like Android or iOS stores, or even the Chrome extensions place. A single place collecting addons as single istance. If you want your addon to be shared you have to publish it there.
But I suspect that maybe it is not as simple as that...
Reply
#11
The "official store" is essentially the Official Kodi Repository. 3rd party add-ons can apply to be included but they must follow specific policies, rules and conditions of inclusion.

It's comparable to an extent, how app stores work on operating systems such as Android and iOS.
Always read the Wiki, FAQ and search the forum before posting.
Read/follow the forum rules.
Reply
#12
No it isn't that simple, for several reasons.

The closest we have is the official repo (the one built into Kodi) but there are several add-ons which whilst good, legitimate and supported aren't in there, either as something about them doesn't allow it (there are rules to what can be included) or the author just doesn't want them there and prefers them in their own repo. Also own repos have their place for things like beta-test versions (either for upcoming new features, or for features specific to beta versions of Kodi itself) and some more specialist add-ons that would perhaps not be for wider public consumption.

There has been some suggestion in the past to have add-on updates limited to the repo that they were installed from, but to my knowledge nothing ever came of that in terms of actually implementing anything.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#13
(2016-10-07, 10:21)DarrenHill Wrote: The closest we have is the official repo (the one built into Kodi) but there are several add-ons which whilst good, legitimate and supported aren't in there, either as something about them doesn't allow it (there are rules to what can be included) or the author just doesn't want them there and prefers them in their own repo. Also own repos have their place for things like beta-test versions (either for upcoming new features, or for features specific to beta versions of Kodi itself) and some more specialist add-ons that would perhaps not be for wider public consumption.

That's clear, thanks.
From a certain point of view I understand that the open repo mechanism is one of the reason of Kodi success. It allows people around the world to develop addons able to share content in a not so "proper" way. I suspect that such addons would never be accepted in the official store, even if it existed.

What if only single addons could be installed instead of entire repos? I mean, you may install addons having their own reference home place on the net. Some addons may be sponsored by Kodi itself and others don't. One is still free to develop his own not so proper addon and share it around the world. Kodi would not take any "responsibility" at home. What features will be lost this way?
Reply
#14
Add-ons can already be installed from zip files like that. But you lose the auto update, and plus your have a while lot more individual files to add-on and maintain.

That's not too say it wouldn't work, but it's more complex.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#15
it wil be nice to add an option for the user to choose from which repo the addon gets the autoupdate .
Reply

Logout Mark Read Team Forum Stats Members Help
Addon autoupdate mechanism0