#import sickbeard ## #set global $title = 'Manage Searches' #set global $header = 'Manage Searches' #set global $sbPath = '..' #set global $topmenu = 'manage' ## #import os.path #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
#if $varExists('header')

$header

#else

$title

#end if

Backlog Search:

Force Limited Force Full #if $backlogPaused then "Unpause" else "Pause"# #if not $backlogRunning: Not in progress
#else #if $backlogPaused then 'Paused: ' else ''# Currently running ($backlogRunningType)
#end if

Recent Search:

Force #if not $recentSearchStatus Not in progress
#else In Progress
#end if

Find Propers Search:

Force #if not $findPropersStatus Not in progress
#else In Progress
#end if

Version Check:

Force Check

Search Queue:

#if $queueLength['backlog'] or $queueLength['manual'] or $queueLength['failed']
#end if
Recent: $queueLength['recent'] item$sickbeard.helpers.maybe_plural($queueLength['recent'])

Proper: $queueLength['proper'] item$sickbeard.helpers.maybe_plural($queueLength['proper'])

Backlog: $len($queueLength['backlog']) item$sickbeard.helpers.maybe_plural($len($queueLength['backlog'])) #if $queueLength['backlog']
#set $row = 0 #for $cur_item in $queueLength['backlog']: #set $search_type = 'On Demand' #if $cur_item[3]: #if $cur_item[5]: #set $search_type = 'Forced' #else #set $search_type = 'Scheduled' #end if #if $cur_item[4]: #set $search_type += ' (Limited)' #else #set $search_type += ' (Full)' #end if #end if #end for #else
#end if
Manual: $len($queueLength['manual']) item$sickbeard.helpers.maybe_plural($len($queueLength['manual'])) #if $queueLength['manual']
#set $row = 0 #for $cur_item in $queueLength['manual']: #end for #else
#end if
Failed: $len($queueLength['failed']) item$sickbeard.helpers.maybe_plural($len($queueLength['failed'])) #if $queueLength['failed']
#set $row = 0 #for $cur_item in $queueLength['failed']: #end for #else
#end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')