Removed internal cache update checks, cache updates will now perform at the interval setting time you set for daily searches.

This commit is contained in:
echel0n 2014-05-20 20:55:42 -07:00
parent 8141d8a170
commit e09c4976a5
1 changed files with 4 additions and 4 deletions

View File

@ -243,10 +243,10 @@ class TVCache():
def shouldUpdate(self):
# if we've updated recently then skip the update
if datetime.datetime.today() - self.lastUpdate < datetime.timedelta(minutes=self.minTime):
logger.log(u"Last update was too soon, using old cache: today()-" + str(self.lastUpdate) + "<" + str(
datetime.timedelta(minutes=self.minTime)), logger.DEBUG)
return False
#if datetime.datetime.today() - self.lastUpdate < datetime.timedelta(minutes=self.minTime):
# logger.log(u"Last update was too soon, using old cache: today()-" + str(self.lastUpdate) + "<" + str(
# datetime.timedelta(minutes=self.minTime)), logger.DEBUG)
# return False
return True