Help creating a repository
#1
Somebody please help...... Creating a repository is driving me crazy.

OK so I'm using the script from here https://kodi.wiki/view/Add-on_repositori...tory_Tools section 6 to generate the zip's xml's and md5 files and all is working fine, I then push all the files to my github here

https://github.com/roidy/repository.roidy

I then create a repository addon with the following addon.xml:-

xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.roidy" name="roidy's test repository" version="0.1" provider-name="roidy">
    <requires>
        <import addon="xbmc.addon" version="12.0.0" />
    </requires>
    <extension point="xbmc.addon.repository" name="roidy's test repository">
        <dir>
            <info compressed="false">https://raw.githubusercontent.com/roidy/repository.roidy/master/zips/addons.xml</info>
            <checksum>https://raw.githubusercontent.com/roidy/repository.roidy/master/zips/addons.xml.md5</checksum>
            <datadir zip="true">https://raw.githubusercontent.com/roidy/repository.roidy/master/zips/</datadir>
        </dir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary>roidy's test repository</summary>
        <description>Just some stuff....</description>
        <disclaimer></disclaimer>
        <platform>all</platform>
        <assets>
            <icon>icon.png</icon>
        </assets>
    </extension>
</addon>

I then install the repository addon in Kodi and everything works perfectly, I can browse the repo and install my addons.

Now the problem starts.... I update one of my addons, make changes to it and increase the version number in it's addon.xml file. I then rerun the python script to generate the new zip xml and md5 files. I then upload the new files to my github but no matter what I do Kodi refuses to update my addon.... Hell it flat out refuses to even see the new version....

The only way I can get it to see the updates is to uninstall the repository addon and reinstall it. What am I doing wrong?

I'd really appreciate some help, this has been driving me crazy for days.
Reply
#2
The first thing I would do is make sure that the addons.xml is actually getting updated and that the md5 hash is actually different. If the addons.xml file for the repo doesn't have the new version number, Kodi won't see it. And in the md5 hash isn't different, Kodi won't even check to see if there are updates available.
Reply
#3
Thanks for the reply.

Yep both files are updated as can be seen from github https://github.com/roidy/repository.roid...9e9d41a46d
Reply
#4
That version numbering for the alpha isn't consistent with what's in the wiki.

https://kodi.wiki/view/Addon.xml#version_attribute

It's possible that using '-' instead of '~' for the alpha designation is causing Kodi to think the version hasn't changed (or is older).

If that doesn't fix it, then I think a full debug log showing you trying to check for updates would be the next step.
Reply
#5
(2020-09-20, 19:21)pkscout Wrote: That version numbering for the alpha isn't consistent with what's in the wiki.

https://kodi.wiki/view/Addon.xml#version_attribute

It's possible that using '-' instead of '~' for the alpha designation is causing Kodi to think the version hasn't changed (or is older).

If that doesn't fix it, then I think a full debug log showing you trying to check for updates would be the next step.
Ok, so I deleted and recreated the github repository and used two different version syntaxes.

skin.mono starts as 0.0.2 and is updated to 0.0.5
skin.singular starts as 0.0.1~alpha and is updated to 0.0.2~alpha

However after pushing the new versions to github, including the new md5 and addons.xml, re-running Kodi and browsing my repository still shows skin.mono at 0.0.2 and skin.singular at 0.0.1~alpha. Neither will update to the new versions.

The only way I get the updates is to uninstall the repository addon and reinstall it, then they automatically update.

I'm on Kodi 18.8 and here's a full log taken after Kodi has been rerun to look for the updates, which never seems to happen:- https://pastebin.com/QjJJ8BYf

Here's a link to the github repo again:- https://github.com/roidy/repository.roidy

Question, does my repository addon need to be in the github repo as well as the other addons?
Reply
#6
Anybody got any idea what I'm doing wrong..... Creating a working repository shouldn't be this hard should itHuh
Reply
#7
(2020-09-20, 19:59)roidy Wrote: ... re-running Kodi and browsing my repository ...

Is that all you are doing? Check for updates yourself, Kodi only automatically checks repos for updates once every 24 hours.
Reply
#8
(2020-09-22, 01:18)rmrector Wrote: Kodi only automatically checks repos for updates once every 24 hours.

D'oh!!! Not sure where I got the idea that Kodi checked for updates on every run. Yep, manually checking works and the addon is updated, I'll do a 24 hour test to make sure but I'm sure it will work fine now. Thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
Help creating a repository0