mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Complete Backlog searches can now be forced from manage search menu.
This commit is contained in:
parent
a688273f6b
commit
1aff31eaec
@ -17,6 +17,7 @@
|
||||
#end if
|
||||
|
||||
<h3>Backlog Search:</h3>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/forceBacklog"><i class="icon-exclamation-sign"></i> Force</a>
|
||||
<a class="btn" href="$sbRoot/manage/manageSearches/pauseBacklog?paused=#if $backlogPaused then "0" else "1"#"><i class="#if $backlogPaused then "icon-play" else "icon-pause"#"></i> #if $backlogPaused then "Unpause" else "Pause"#</a>
|
||||
#if not $backlogRunning:
|
||||
Not in progress<br />
|
||||
|
@ -213,6 +213,18 @@ class ManageSearches:
|
||||
|
||||
return _munge(t)
|
||||
|
||||
|
||||
@cherrypy.expose
|
||||
def forceBacklog(self):
|
||||
# force it to run the next time it looks
|
||||
result = sickbeard.backlogSearchScheduler.forceRun()
|
||||
if result:
|
||||
logger.log(u"Backlog search forced")
|
||||
ui.notifications.message('Backlog search started')
|
||||
|
||||
redirect("/manage/manageSearches/")
|
||||
|
||||
|
||||
@cherrypy.expose
|
||||
def forceSearch(self):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user