#import sickbeard #from sickbeard.helpers import find_show_by_id, maybe_plural #from sickbeard.sgdatetime import SGDatetime ## #set global $title = 'Show Tasks' #set global $header = 'Show Tasks' #set global $sbPath = '..' #set global $topmenu = 'manage' #set $dev_mode = os.environ.get('SG_DEV_MODE') ## #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

Daily show update:

Force #if not $show_update_running: Not in progress (Next run: $SGDatetime.sbftime($next_run))
#else: Currently running
#end if
#if $not_found_shows #set $num_errors = $len($not_found_shows) #set $err_class = ('', ' errors ' + ($num_errors * 'n')[0:4])[any([$num_errors])]

$num_errors Show$maybe_plural($num_errors) with abandoned master ID$maybe_plural($num_errors):

List of show(s) with changed ID at the TV info source. Click show name to get new ID, so that episode info updates may continue


#set $row = 0 #for $cur_show in $not_found_shows: #end for
Show name Last found Ignore Warn
$cur_show['show_name'] $cur_show['last_success']
Note: Ignored shows will still not get updates unless edited
#end if #if $defunct_indexer

Shows from defunct TV info sources:


#set $row = 0 #for $cur_show in $defunct_indexer: #end for
Show name
$cur_show['show_name']
#end if

Show queue:

#if $queue_length['add'] or $queue_length['update'] or $queue_length['refresh'] or $queue_length['rename'] or $queue_length['subtitle']

#end if
Add: $len($queue_length['add']) show$sickbeard.helpers.maybe_plural($len($queue_length['add'])) #if $dev_mode ##end if# #if $queue_length['add']
#set $row = 0 #for $cur_show in $queue_length['add']: #set $show_name = str($cur_show['name']) #end for #else
#end if
Update (Forced / Forced Web): $len($queue_length['update']) ($len($queue_length['forceupdate']) / $len($queue_length['forceupdateweb'])) show$sickbeard.helpers.maybe_plural($len($queue_length['update'])) #if $dev_mode ##end if# #if $queue_length['update']
#set $row = 0 #for $cur_show in $queue_length['update']: #set $show_name = $cur_show['name'] #if not $cur_show['name'] #set $show_obj = $find_show_by_id({$cur_show['tvid']: $cur_show['prodid']}) #if $show_obj #set $show_name = $show_obj.name #end if #end if #end for #else
#end if
Refresh: $len($queue_length['refresh']) show$sickbeard.helpers.maybe_plural($len($queue_length['refresh'])) #if $dev_mode ##end if# #if $queue_length['refresh']
#set $row = 0 #for $cur_show in $queue_length['refresh']: #end for #else
#end if
Switch Source: $len($queue_length['switch']) show$sickbeard.helpers.maybe_plural($len($queue_length['switch'])) #if $dev_mode ##end if# #if $queue_length['switch']
#set $row = 0 #for $cur_show in $queue_length['switch']: #end for #else
#end if
Switch Failed: $len($failed_switch) show$sickbeard.helpers.maybe_plural($len($failed_switch)) #if $failed_switch
#set $row = 0 #for $cur_show in $failed_switch: #end for #else
#end if
People: $len($people_queue['main_cast']) show$sickbeard.helpers.maybe_plural($len($people_queue['main_cast'])) #if $dev_mode ##end if# #if $people_queue['main_cast']
#set $row = 0 #for $cur_show in $people_queue['main_cast']: #end for #else
#end if
Rename: $len($queue_length['rename']) show$sickbeard.helpers.maybe_plural($len($queue_length['rename'])) #if $dev_mode ##end if# #if $queue_length['rename']
#set $row = 0 #for $cur_show in $queue_length['rename']: #end for #else
#end if #if $sickbeard.USE_SUBTITLES
Subtitle: $len($queue_length['subtitle']) show$sickbeard.helpers.maybe_plural($len($queue_length['subtitle'])) #if $dev_mode ##end if# #if $queue_length['subtitle']
#set $row = 0 #for $cur_show in $queue_length['subtitle']: #end for #else
#end if #end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')