#import sickgear #import datetime #from sickgear import network_timezones #from sickgear.common import * #from sickgear.sgdatetime import SGDatetime ## #set global $title = 'Backlog Overview' #set global $header = 'Backlog Overview' #set global $sbPath = '..' #set global $topmenu = 'manage' #set global $page_body_attr = 'backlog' ## #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 ## #set $total_wanted = 0 #set $total_qual = 0 #for $cur_show_obj in $sickgear.showList #set $total_wanted += $show_counts[$cur_show_obj.tvid_prodid][$Overview.WANTED] #set $total_qual += $show_counts[$cur_show_obj.tvid_prodid][$Overview.QUAL] #end for ##
Wanted: $total_wanted Low Quality: $total_qual

#if not $total_wanted

no shows require a backlog search

#else
Jump to Show
#end if #for $cur_show_obj in sorted($sickgear.showList, key = operator.attrgetter('name')) ## #if 0 == $show_counts[$cur_show_obj.tvid_prodid][$Overview.QUAL] + $show_counts[$cur_show_obj.tvid_prodid][$Overview.WANTED] #continue #end if ## #for $cur_result in $ep_sql_results[$cur_show_obj.tvid_prodid] #set $which_idx = '%sx%s' % ($cur_result['season'], $cur_result['episode']) #try #set $which_str = '%s x %02d' % ($cur_result['season'], $cur_result['episode']) #except Exception #set $which_str = '%s x %s' % ($cur_result['season'], $cur_result['episode']) #end try #try #set $overview = $show_cats[$cur_show_obj.tvid_prodid][$which_idx] #except Exception #continue #end try ## #if $cur_result['backlog'] # # #end if #end for #end for

$getattr($cur_show_obj, 'unique_name', $cur_show_obj.name)

#if not $cur_show_obj.paused and not $backlog_active_providers #set $text = 'Enable allow active searching for one or more providers at config media providers' #for ($tag_class, $sub) in ( ('grey-text', 'Enable'), ('grey-text', 'for one or more providers at config')) #set $text = $text.replace($sub, '%s' % ($tag_class, $sub)) #end for #set $sub = 'media providers' #set $text = $text.replace($sub, '%s' % ($sbRoot, $sub)).replace(' more', '
more') $text #end if
Wanted: $show_counts[$cur_show_obj.tvid_prodid][$Overview.WANTED] Low Quality: $show_counts[$cur_show_obj.tvid_prodid][$Overview.QUAL] #if not $cur_show_obj.paused Force Backlog #else Paused #end if
EpisodeNameAirdate
$which_str $cur_result['name']
#if 1 == int($cur_result['airdate']) then 'never' else $SGDatetime.sbfdate($SGDatetime.convert_to_setting($network_timezones.parse_date_time($cur_result['airdate'], $cur_show_obj.airs, $cur_show_obj.network)))#
#include $os.path.join($sickgear.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')