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 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
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Addon self update00