Kodi Community Forum
Repository not self-updating - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Repository not self-updating (/showthread.php?tid=132139)

Pages: 1 2


Repository not self-updating - humla - 2012-05-23

So I have set up a repository with an addon and it does not seem to update automatically. If I uninstall and then install again then I get the updated addon. Here are the relevant files.

addon.xml -> for the addon
Code:
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.canadanepal"
       name="CanadaNepal"
       version="0.1.4"
       provider-name="humla">
    <requires>
        <import addon="xbmc.python" version="1.0"/>
        <import addon="plugin.video.bliptv" version="0.4.0"/>
        <import addon="script.module.urlresolver" version="0.0.1"/>
    </requires>
    <extension point="xbmc.python.pluginsource"
               library="default.py">
        <provides>video</provides>
    </extension>
    <extension point="xbmc.addon.metadata">
        <platform>all</platform>
        <summary>Watch Nepali TV serials from canadanepal.info</summary>
        <description>This XBMC plugin allows to watch Nepali TV serials, Live TV, Live FM and more from canadanepal.info</description>
    </extension>
</addon>

make_addons_xml.sh -> generates addons.xml and addons.xml.md5
Code:
#!/bin/bash

echo '<?xml version="1.0" encoding="UTF-8"?>' > addons.xml

echo "<addons>" >> addons.xml
for plugin in `ls -d */`
do
    tail --lines=+2  $plugin/addon.xml >> addons.xml
done
echo "</addons>" >> addons.xml
md5sum addons.xml > addons.xml.md5

the repository's addon.xml
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.humla" name="humla Add-on Repository" version="1.0.0" provider-name="humla">
    <extension point="xbmc.addon.repository" name="humla Add-on Repository">
        <info compressed="false">http://canadanepal-xbmc-plugin.googlecode.com/git/addons.xml</info>
        <checksum>http://canadanepal-xbmc-plugin.googlecode.com/git/addons.xml.md5</checksum>
        <datadir zip="false">http://canadanepal-xbmc-plugin.googlecode.com/git/</datadir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary>Install Add-ons from humla Add-on Repository</summary>
        <description>Video plug-ins for XBMC</description>
        <disclaimer></disclaimer>
        <platform>all</platform>
    </extension>
</addon>

Any apparent mistakes in here?

Thank You.


RE: Repository not self-updating - Bstrdsmkr - 2012-05-23

I don't know that it would stop it from updating, but this:
Code:
<import addon="xbmc.python" version="1.0"/>
should be:
Code:
<import addon="xbmc.python" version="2.0"/>
for Eden


RE: Repository not self-updating - humla - 2012-05-23

Thank you, I made that change.
Another thing to say is, if I right click on the repository and select "force refresh" then it updates the plugin.




RE: Repository not self-updating - bossanova808 - 2012-05-23

How long are you waiting? I think xbmc only checks repos every X hours (maybe 6?)


RE: Repository not self-updating - spiff - 2012-05-23

6h cycle on a per-repo basis yes.


RE: Repository not self-updating - humla - 2012-05-23

But can u not force it to check for update by selecting "Force update"?


RE: Repository not self-updating - spiff - 2012-05-23

force update will force a refresh. check for updates will check for updates.


RE: Repository not self-updating - humla - 2012-05-25

^ Slightly confused by that explanation.

But I have tried waiting for more than 12hr more than once and it does not seem to update.



Repository not self-updating - bossanova808 - 2012-05-25

Yeah me too (confused). But I think it means updates of existing things it knows of in the repo vs refreshing the whole list to find new things as well.

That said I have also seen it take more than 12 hours... Given up waiting, but users of my addons always seem to be on current versions so I think it works eventually.


RE: Repository not self-updating - jmarshall - 2012-05-25

Update checks the .md5 against the stored md5. Force refresh will invalidate the stored md5, thus will force a re-download.

Cheers,
Jonathan


RE: Repository not self-updating - humla - 2012-05-25

(2012-05-25, 00:51)jmarshall Wrote: Update checks the .md5 against the stored md5. Force refresh will invalidate the stored md5, thus will force a re-download.

Cheers,
Jonathan

So, if the remote new md5 is different than the stored, then both of them should do the same thing. But in my case it isnt. Another problem is it isnt possible to see all the internals of the this update porcess in the log. Or is it?


RE: Repository not self-updating - jmarshall - 2012-05-25

Update runs on a 6 hour cycle (and doesn't run during video playback for example).


RE: Repository not self-updating - vikjon0 - 2012-05-25

Quote:Another problem is it isnt possible to see all the internals of the this update porcess in the log. Or is it?
Compared to in previous version the logging seem seem to be improved. I was struggling in Dharma but in Eden I got logs of the errors in the rep setup.

You only have issues with refresh not install? 100% of the issues I manage to get with my rep was install rep or install addon related. Never saw any issues with refresh. Assuming the md5 is generated it just works. I use github though so it is different.


RE: Repository not self-updating - humla - 2012-05-27

Just enabled debug log and tried "check for updates" and this is what i see in the log. the "<" and "?" are added by me.

Code:
09:21:00 T:944   DEBUG: CFileCache::Open - opening <addons/eden/addons.xml.md5> using cache
09:21:00 T:944   DEBUG: FileCurl::Open(02BBBB28) http://mirrors.xbmc.org/addons/eden/addons.xml.md5
09:21:00 T:944    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://mirrors.xbmc.org
09:21:00 T:1904   DEBUG: Thread XFILE::CFileCache start, auto delete: 0
09:21:00 T:1904    INFO: CFileCache::Process - Hit eof. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
09:21:00 T:1904   DEBUG: Thread XFILE::CFileCache 1904 terminating
09:21:00 T:3368   DEBUG: CWinEventsWin32::WndProcWindow is inactive
09:21:00 T:944   DEBUG: CFileCache::Open - opening <git/addons.xml.md5> using cache
09:21:00 T:944   DEBUG: FileCurl::Open(02BBBB28) http://canadanepal-xbmc-plugin.googlecode.com/git/addons.xml.md5
09:21:00 T:944    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://canadanepal-xbmc-plugin.googlecode.com
09:21:01 T:3648   DEBUG: Thread XFILE::CFileCache start, auto delete: 0 ????????????
09:21:01 T:3648   DEBUG: Thread XFILE::CFileCache 3648 terminating ?????????????????
09:21:01 T:944   DEBUG: CFileCache::Open - opening <Eldorados/eldorado-xbmc-addons/raw/master/addons.xml.md5> using cache
09:21:01 T:944   DEBUG: FileCurl::Open(02BBBB28) https://github.com/Eldorados/eldorado-xbmc-addons/raw/master/addons.xml.md5
09:21:01 T:944    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to https://github.com
09:21:02 T:220   DEBUG: Thread XFILE::CFileCache start, auto delete: 0
09:21:02 T:220    INFO: CFileCache::Process - Hit eof. <<<<<<<<<<<<<<<<<<<<<<<<
09:21:02 T:220   DEBUG: Thread XFILE::CFileCache 220 terminating
As you can see all the other repo check the md5 file and display the INFO: CFileCache:Tonguerocess - Hit eof. in the log, but I dont seem to get that for my repo. Anyone can see a problem.

Thank you,


Repository not self-updating - bossanova808 - 2012-06-03

I have the same issue.... Also google code. Days can go by before I give up and force refresh...
And only refresh issues, not instal...