mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -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
|
#end if
|
||||||
|
|
||||||
<h3>Backlog Search:</h3>
|
<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>
|
<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:
|
#if not $backlogRunning:
|
||||||
Not in progress<br />
|
Not in progress<br />
|
||||||
|
@ -213,6 +213,18 @@ class ManageSearches:
|
|||||||
|
|
||||||
return _munge(t)
|
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
|
@cherrypy.expose
|
||||||
def forceSearch(self):
|
def forceSearch(self):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user