diff --git a/gui/slick/interfaces/default/inc_bottom.tmpl b/gui/slick/interfaces/default/inc_bottom.tmpl index 16fa603b..debb3d10 100644 --- a/gui/slick/interfaces/default/inc_bottom.tmpl +++ b/gui/slick/interfaces/default/inc_bottom.tmpl @@ -39,7 +39,7 @@ #set $ep_total = 0 #end if - $shows_total Shows ($shows_active Active) | <%=ep_downloaded%>#if $ep_snatched > 0 then " (+" + str($ep_snatched) + " snatched)" else ""# / $ep_total Episodes Downloaded | Daily Search: <%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%> | Backlog Search: $sbdatetime.sbdatetime.sbfdatetime($sickbeard.backlogSearchScheduler.nextRun()) + $shows_total Shows ($shows_active Active) | <%=ep_downloaded%>#if $ep_snatched > 0 then " (+" + str($ep_snatched) + " snatched)" else ""# / $ep_total Episodes Downloaded | Daily Search: <%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%> | Backlog Search: $sbdatetime.sbdatetime.sbfdate($sickbeard.backlogSearchScheduler.nextRun())
Force Version Check Restart diff --git a/sickbeard/searchBacklog.py b/sickbeard/searchBacklog.py index 7256d1cd..b3119dd7 100644 --- a/sickbeard/searchBacklog.py +++ b/sickbeard/searchBacklog.py @@ -37,9 +37,9 @@ class BacklogSearchScheduler(scheduler.Scheduler): def nextRun(self): if self.action._lastBacklog <= 1: - return datetime.datetime.today() + return datetime.date.today() else: - return datetime.datetime.fromordinal(self.action._lastBacklog + self.action.cycleTime) + return datetime.date.fromordinal(self.action._lastBacklog + self.action.cycleTime) class BacklogSearcher: @@ -86,7 +86,7 @@ class BacklogSearcher: if not which_shows and not curDate - self._lastBacklog >= self.cycleTime: logger.log(u"Running limited backlog on missed episodes " + sickbeard.BACKLOG_DAYS + " day(s) and older only") - fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard.BACKLOG_DAYS) + fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard) self.amActive = True self.amPaused = False