#import sickgear #import datetime #from sickgear.common import (Overview, statusStrings, ARCHIVED, FAILED, IGNORED, SKIPPED, SNATCHED, SNATCHED_ANY, UNKNOWN, WANTED, DOWNLOADED) ## #set global $title = 'Episode Overview' #set global $header = 'Episode Overview' #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 ## #if not $which_status or ($which_status and not $ep_counts) ## #if $which_status:

no episodes have status $statusStrings[$which_status].lower()

#end if
Manage episodes with status
## #else #if $which_status in ($ARCHIVED, $IGNORED): #set $row_class = 'good' #elif $which_status == $SNATCHED: #set $row_class = 'snatched' #else #set $row_class = $Overview.overviewStrings[$which_status] #end if #set $statusList = [$ARCHIVED, $IGNORED, $SKIPPED] #if $DOWNLOADED == $which_status: #set $statusList = [$ARCHIVED] #elif $ARCHIVED == $which_status: #set $statusList = [$SKIPPED, $DOWNLOADED, $ARCHIVED, $IGNORED] #end if #if $which_status in $statusList $statusList.remove($which_status) #end if
$xsrf_form_html

$ep_count episode#echo ('s', '')[1 == $ep_count]# marked $statusStrings[$which_status].lower() in ${len($sorted_show_ids)} show#echo ('s', '')[1 == len($sorted_show_ids)]#

Set checked shows/episodes to #if $DOWNLOADED != $which_status: Override checked status to #end if
#set $row = 0 #for $tvid_prodid in $sorted_show_ids: #if 0 == int($never_counts[$tvid_prodid]) #set $output = '%d' % $ep_counts[$tvid_prodid] #elif $ep_counts[$tvid_prodid] != $never_counts[$tvid_prodid] #set $diff = $ep_counts[$tvid_prodid] - $never_counts[$tvid_prodid] #set $output = '%d' % $diff + ('', (' episode%s plus %s never with an airdate' % (('s', '')[1 == $ep_counts[$tvid_prodid]], $never_counts[$tvid_prodid])))[0 < $never_counts[$tvid_prodid]] #else #set $output = '%s never with an airdate' % (('all %s %ss', '%s %s')[1 == $ep_counts[$tvid_prodid]] % ($ep_counts[$tvid_prodid], 'episode')) #end if #end for
$show_names[$tvid_prodid] ($output)
#end if #include $os.path.join($sickgear.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')