#import sickgear #from sickgear.helpers import find_show_by_id, maybe_plural #from sickgear.sgdatetime import SGDatetime ## #set global $title = 'Show Tasks' #set global $header = 'Show Tasks' #set global $sbPath = '..' #set global $topmenu = 'manage' ## #import os.path #include $os.path.join($sickgear.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 main 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['switch'] or $people_queue['main_cast'] or $queue_length['rename'] or $queue_length['subtitle']
#end if
Add: $len($queue_length['add']) show$sickgear.helpers.maybe_plural($len($queue_length['add'])) #if $queue_length['add']
#set $row = 0 #for $cur_show in $queue_length['add']: #set $show_name = str($cur_show['name']) #end for
Show name  
$show_name #if $cur_show['scheduled_update']#Scheduled#end if#
#else
#end if
Update (Forced / Forced Web): $len($queue_length['update']) ($len($queue_length['forceupdate']) / $len($queue_length['forceupdateweb'])) show$sickgear.helpers.maybe_plural($len($queue_length['update'])) #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 = getattr($show_obj, 'unique_name', $show_obj.name) #end if #end if #end for
Show name Schedule type
$show_name #if $cur_show['scheduled_update']#Scheduled, #end if#$cur_show['update_type']
#else
#end if
Refresh: $len($queue_length['refresh']) show$sickgear.helpers.maybe_plural($len($queue_length['refresh'])) #if $queue_length['refresh']
#set $row = 0 #for $cur_show in $queue_length['refresh']: #end for
Show name Schedule type
$cur_show['name'] #if $cur_show['scheduled_update']#Scheduled#end if#
#else
#end if
Switch Source: $len($queue_length['switch']) show$sickgear.helpers.maybe_plural($len($queue_length['switch'])) #if $queue_length['switch']
#set $row = 0 #for $cur_show in $queue_length['switch']: #end for
Show name New TV Source
$cur_show['name'] $sickgear.TVInfoAPI($cur_show['new_tvid']).name
#else #end if
Switch Failed: $len($failed_switch) show$sickgear.helpers.maybe_plural($len($failed_switch)) #if $failed_switch
#set $row = 0 #for $cur_show in $failed_switch: #end for
Show name New TV Source Fail Reason
#if $cur_show['show_obj'] $cur_show['show_obj'].name #else ## Unknown Show: $cur_show['old_tvid']:$cur_show['old_prodid'] Unknown #end if $sickgear.TVInfoAPI($cur_show['new_tvid']).name $cur_show['status']
#else #end if
People: $len($people_queue['main_cast']) show$sickgear.helpers.maybe_plural($len($people_queue['main_cast'])) #if $people_queue['main_cast']
#set $row = 0 #for $cur_show in $people_queue['main_cast']: #end for
Show name People type
$cur_show['name'] Main Cast
#else #end if
Rename: $len($queue_length['rename']) show$sickgear.helpers.maybe_plural($len($queue_length['rename'])) #if $queue_length['rename']
#set $row = 0 #for $cur_show in $queue_length['rename']: #end for
Show name Schedule type
$cur_show['name'] #if $cur_show['scheduled_update']#Scheduled#end if#
#else #end if #if $sickgear.USE_SUBTITLES
Subtitle: $len($queue_length['subtitle']) show$sickgear.helpers.maybe_plural($len($queue_length['subtitle'])) #if $queue_length['subtitle']
#set $row = 0 #for $cur_show in $queue_length['subtitle']: #end for
Show name Schedule type
$cur_show['name'] #if $cur_show['scheduled_update']#Scheduled#end if#
#else #end if #end if #include $os.path.join($sickgear.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')