#import sickbeard ## #set global $title = 'Media Search' #set global $header = 'Media Search' #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 #if $backlogPaused then "Unpause" else "Pause"# #if $backlogPaused then 'Paused: ' else ''# #if not $backlogRunning and not $backlogIsActive: Not in progress
#else Currently running#if $backlogRunningType != "None"# ($backlogRunningType)#end if#
#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


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['standard_backlog']: #if $cur_item['forced']: #set $search_type = 'Forced' #else #set $search_type = 'Scheduled' #end if #if $cur_item['torrent_only']: #set $search_type += ', Torrent Only' #end if #if $cur_item['limited_backlog']: #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')