#import sickbeard #from sickbeard.helpers import findCertainShow ## #set global $title = 'Show Queue Overview' #set global $header = 'Show Queue 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

Daily Show Update:

Force #if not $ShowUpdateRunning: Not in progress
#else: Currently running
#end if

Show Queue:


#if $queueLength['add'] or $queueLength['update'] or $queueLength['refresh'] or $queueLength['rename'] or $queueLength['subtitle']
#end if
Add: $len($queueLength['add']) show$sickbeard.helpers.maybe_plural($len($queueLength['add'])) #if $queueLength['add']
#set $row = 0 #for $cur_show in $queueLength['add']: #set $show_name = str($cur_show['name']) #end for #else
#end if
Update (Forced / Forced Web): $len($queueLength['update']) ($len($queueLength['forceupdate']) / $len($queueLength['forceupdateweb'])) show$sickbeard.helpers.maybe_plural($len($queueLength['update'])) #if $queueLength['update']
#set $row = 0 #for $cur_show in $queueLength['update']: #set $show = $findCertainShow($showList, $cur_show['indexerid']) #set $show_name = $show.name if $show else str($cur_show['name']) #end for #else
#end if
Refresh: $len($queueLength['refresh']) show$sickbeard.helpers.maybe_plural($len($queueLength['refresh'])) #if $queueLength['refresh']
#set $row = 0 #for $cur_show in $queueLength['refresh']: #set $show = $findCertainShow($showList, $cur_show['indexerid']) #set $show_name = $show.name if $show else str($cur_show['name']) #end for #else
#end if
Rename: $len($queueLength['rename']) show$sickbeard.helpers.maybe_plural($len($queueLength['rename'])) #if $queueLength['rename']
#set $row = 0 #for $cur_show in $queueLength['rename']: #set $show = $findCertainShow($showList, $cur_show['indexerid']) #set $show_name = $show.name if $show else str($cur_show['name']) #end for #else
#end if #if $sickbeard.USE_SUBTITLES
Subtitle: $len($queueLength['subtitle']) show$sickbeard.helpers.maybe_plural($len($queueLength['subtitle'])) #if $queueLength['subtitle']
#set $row = 0 #for $cur_show in $queueLength['subtitle']: #set $show = $findCertainShow($showList, $cur_show['indexerid']) #set $show_name = $show.name if $show else str($cur_show['name']) #end for #else
#end if #end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')