#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 $backlog_paused then "Unpause" else "Pause"# #if $backlog_paused then 'Paused: ' else ''# #if not $backlog_running and not $backlog_is_active: Not in progress
#else Currently running#if $backlog_running_type != "None"# ($backlog_running_type)#end if#
#end if

Recent Search:

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

Find Propers Search:

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


Search Queue:

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

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

Backlog: $len($queue_length['backlog']) item$sickbeard.helpers.maybe_plural($len($queue_length['backlog'])) #if $queue_length['backlog']
#set $row = 0 #for $cur_item in $queue_length['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($queue_length['manual']) item$sickbeard.helpers.maybe_plural($len($queue_length['manual'])) #if $queue_length['manual']
#set $row = 0 #for $cur_item in $queue_length['manual']: #end for #else
#end if
Failed: $len($queue_length['failed']) item$sickbeard.helpers.maybe_plural($len($queue_length['failed'])) #if $queue_length['failed']
#set $row = 0 #for $cur_item in $queue_length['failed']: #end for #else
#end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')