#import sickbeard #import datetime #from sickbeard import common #set global $title = 'Episode Overview' #set global $header = 'Episode Overview' #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 #if not $whichStatus or ($whichStatus and not $ep_counts) #if $whichStatus:

no episodes have status $common.statusStrings[$int($whichStatus)].lower()

#end if
Manage episodes with status
#else #if $whichStatus in ($common.ARCHIVED, $common.IGNORED, $common.SNATCHED): #set $row_class = 'good' #else #set $row_class = $common.Overview.overviewStrings[$whichStatus] #end if #set $statusList = [$common.SKIPPED, $common.ARCHIVED, $common.IGNORED] #if $int($whichStatus) in $statusList $statusList.remove($int($whichStatus)) #end if #if $int($whichStatus) in [$common.SNATCHED, $common.SNATCHED_PROPER] $statusList.append($common.FAILED) #end if

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

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