Merge pull request #4750 from MartijnKaijser/repotime_extend
authorMartijn Kaijser <machine.sanctum@gmail.com>
Wed, 21 May 2014 05:13:08 +0000 (07:13 +0200)
committerTrent Nelson <trent.nelson@pivosgroup.com>
Sat, 7 Jun 2014 05:27:40 +0000 (13:27 +0800)
[addons] extend repo check to 24 hours

xbmc/addons/AddonInstaller.cpp

index 4598615..1db36c7 100644 (file)
@@ -383,7 +383,7 @@ void CAddonInstaller::UpdateRepos(bool force, bool wait)
     CAddonDatabase database;
     database.Open();
     CDateTime lastUpdate = database.GetRepoTimestamp(addons[i]->ID());
-    if (force || !lastUpdate.IsValid() || lastUpdate + CDateTimeSpan(0,6,0,0) < CDateTime::GetCurrentDateTime())
+    if (force || !lastUpdate.IsValid() || lastUpdate + CDateTimeSpan(0,24,0,0) < CDateTime::GetCurrentDateTime())
     {
       CLog::Log(LOGDEBUG,"Checking repositories for updates (triggered by %s)",addons[i]->Name().c_str());
       m_repoUpdateJob = CJobManager::GetInstance().AddJob(new CRepositoryUpdateJob(addons), this);