Repository not self-updating
#1
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.
Reply
#2
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
Reply
#3
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.

Reply
#4
How long are you waiting? I think xbmc only checks repos every X hours (maybe 6?)
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#5
6h cycle on a per-repo basis yes.
Reply
#6
But can u not force it to check for update by selecting "Force update"?
Reply
#7
force update will force a refresh. check for updates will check for updates.
Reply
#8
^ Slightly confused by that explanation.

But I have tried waiting for more than 12hr more than once and it does not seem to update.
Reply
#9
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.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#10
Update checks the .md5 against the stored md5. Force refresh will invalidate the stored md5, thus will force a re-download.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#11
(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?
Reply
#12
Update runs on a 6 hour cycle (and doesn't run during video playback for example).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#13
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.
Reply
#14
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,
Reply
#15
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...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply

Logout Mark Read Team Forum Stats Members Help
Repository not self-updating0