Addon self update
#16
if i understand shchvova correctly, i think he means, just add a repository extension point to your addon's addon.xml:

PHP Code:
<extension point="xbmc.addon.repository" name="VK XBMC Add-ons">
                <
info compressed="false">http://xbmc-vk-repo.googlecode.com/svn/trunk/test_test/addons.xml</info>
                
<checksum>http://xbmc-vk-repo.googlecode.com/svn/trunk/test_test/addons.xml.md5</checksum>
                
<datadir zip="false">http://xbmc-vk-repo.googlecode.com/svn/trunk/test_test/</datadir>
        
</extension

crucially don't set the repository name to the same as the addon's name.
obviously you need to have a repository correctly configured for it to work.

i haven't tested this.
Reply
#17
i have installed addon.

it didnt work first at all then ten mins later it did updated itself and now its working..

i am wondering something.. can i make any vk.com video work with this addon just like youtube video url style?
Reply
#18
(2011-01-13, 17:42)anarchintosh Wrote: if i understand shchvova correctly, i think he means, just add a repository extension point to your addon's addon.xml:

PHP Code:
<extension point="xbmc.addon.repository" name="VK XBMC Add-ons">
                <
info compressed="false">http://xbmc-vk-repo.googlecode.com/svn/trunk/test_test/addons.xml</info>
                
<checksum>http://xbmc-vk-repo.googlecode.com/svn/trunk/test_test/addons.xml.md5</checksum>
                
<datadir zip="false">http://xbmc-vk-repo.googlecode.com/svn/trunk/test_test/</datadir>
        
</extension

crucially don't set the repository name to the same as the addon's name.
obviously you need to have a repository correctly configured for it to work.

i haven't tested this.

It doesn't matter if the repository extension point has the same name as the addon,
it still works, I have tested it.
Here's an example addon.xml structure:
xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.jesussaves" name="HolyChurch" version="0.0.8" provider-name="God">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.requests" version="2.22.0"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.repository" name="HolyChurch">
<info compressed="false">someurl</info>
<checksum>someurl</checksum>
<datadir zip="true">someurl</datadir>
</extension>
</addon>
What you get is a self updating addon, without the need for a separate repository file.
The above video addon will be listed here: My add-ons=>Video add-ons
You won't see it under My add-ons=>Add-on repository
But you will find it in "Install from repository" as "HolyChurch"
If one does create a separate repository file, as is the tradition, then
that addon name can not have the same name as the repository extension point
of the video addon, as there would be a name conflict.
There is one big caveat though, if your addon have any dependencies not
present on the system, and only supplied by your repo, the addon will fail to install.
Even if present as a repository extension point in that same addon.

If the kodi developers decided to change the code, so any repository extension
points first got installed, we could scrap separate reposit files once and for all.
Reply
#19
(2019-10-06, 16:05)dobbelina Wrote: What you get is a self updating addon, without the need for a separate repository file.
The above video addon will be listed here: My add-ons=>Video add-ons
You won't see it under My add-ons=>Add-on repository
But you will find it in "Install from repository" as "HolyChurch"
I've done this for my own add-on and it does show up at this place. But when I manually search for updates, it doesn't find any.

I suppose I've done something wrong with the updated add-on on my server.
My addon.xml has the following:
Code:
<info compressed="false">http://domain.tld/kodi/plugin-name/addon.xml</info>
<checksum>http://domain.tld/kodi/plugin-name/addon.xml.md5</checksum>
<datadir zip="true">http://domain.tld/kodi/</datadir>

As I understand the wiki's description of addon.xml, 'datadir' only points to a main folder where it searches for a folder named after the plugin and in that folder there has to be a zip file also named after the plugin.

And addon.xml.md5 does not necessarily have to have a valid md5 checksum because it's never validated, just checked against the checksum of the old md5. So technically I can write anything in it as long as it's not the old checksum?

Final question: the folder 'http://domain.tld/kodi/' only has to have one folder 'plugin.video.plugin-name' and this folder has to have three files, plugin.video.plugin-name.zip, addon.xml and addon.xml.md5?
Reply

Logout Mark Read Team Forum Stats Members Help
Addon self update0