mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Reverted backlog search nextrun changes
This commit is contained in:
parent
41dbbbaa9b
commit
9eec99cd14
@ -39,7 +39,7 @@
|
||||
#set $ep_total = 0
|
||||
#end if
|
||||
|
||||
<b>$shows_total</b> Shows (<b>$shows_active</b> Active) <b>|</b> <b><%=ep_downloaded%>#if $ep_snatched > 0 then " (+" + str($ep_snatched) + " snatched)" else ""# / $ep_total</b> Episodes Downloaded <b>|</b> Daily Search: <b><%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%></b> <b>|</b> Backlog Search: <b>$sbdatetime.sbdatetime.sbfdatetime($sickbeard.backlogSearchScheduler.nextRun())</b>
|
||||
<b>$shows_total</b> Shows (<b>$shows_active</b> Active) <b>|</b> <b><%=ep_downloaded%>#if $ep_snatched > 0 then " (+" + str($ep_snatched) + " snatched)" else ""# / $ep_total</b> Episodes Downloaded <b>|</b> Daily Search: <b><%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%></b> <b>|</b> Backlog Search: <b>$sbdatetime.sbdatetime.sbfdate($sickbeard.backlogSearchScheduler.nextRun())</b>
|
||||
<p>
|
||||
<a href="$sbRoot/manage/manageSearches/forceVersionCheck"><img src="$sbRoot/images/menu/update16.png" alt="" width="16" height="16" />Force Version Check</a>
|
||||
<a href="$sbRoot/home/restart/?pid=$sbPID" class="confirm"><img src="$sbRoot/images/menu/restart16.png" alt="" width="16" height="16" />Restart</a>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user