#import sickbeard #import datetime #from sickbeard.common import * #from sickbeard import sbdatetime, network_timezones #set global $title = 'Backlog Overview' #set global $header = 'Backlog 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 #set $totalWanted = 0 #set $totalQual = 0 #set $totalSnatched = 0 #for $curShow in $sickbeard.showList: #set $totalWanted = $totalWanted + $showCounts[$curShow.indexerid][$Overview.WANTED] #set $totalQual = $totalQual + $showCounts[$curShow.indexerid][$Overview.QUAL] #set $totalSnatched = $totalSnatched + $showCounts[$curShow.indexerid][$Overview.SNATCHED] #end for
Wanted: $totalWanted Low Quality: $totalQual Snatched: $totalSnatched

Jump to Show
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')): #if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] + $showCounts[$curShow.indexerid][$Overview.SNATCHED] == 0: #continue #end if #for $curResult in $showSQLResults[$curShow.indexerid]: #set $whichStr = $str($curResult['season']) + 'x' + $str($curResult['episode']) #try: #set $overview = $showCats[$curShow.indexerid][$whichStr] #except Exception #continue #end try #if $overview not in ($Overview.QUAL, $Overview.WANTED, $Overview.SNATCHED): #continue #end if #end for #end for

$curShow.name

Wanted: $showCounts[$curShow.indexerid][$Overview.WANTED] Low Quality: $showCounts[$curShow.indexerid][$Overview.QUAL] Snatched: $showCounts[$curShow.indexerid][$Overview.SNATCHED] Force Backlog
EpisodeNameAirdate
$whichStr $curResult["name"]
#if int($curResult['airdate']) == 1 then 'never' else $sbdatetime.sbdatetime.sbfdate($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($curResult['airdate'],$curShow.airs,$curShow.network)))#
#include $os.path.join($sickbeard.PROG_DIR,'gui/slick/interfaces/default/inc_bottom.tmpl')