#import sickbeard #import datetime #import re #from sickbeard import providers #from sickbeard.providers import generic #from sickbeard.common import * ## #set global $header = 'Failed Downloads' #set global $title = 'Failed Downloads' #set global $sbPath = '..' #set global $topmenu = 'manage' #set global $page_body_attr = 'failed' ## #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 selected = ' selected="selected"'
Limit:
#set $oldest = $len($failedResults) #set $order = $oldest #for $hItem in $failedResults[::-1] #set $provider = $providers.getProviderClass($generic.GenericProvider.make_id($hItem['provider'])) #set $provider_name = None is not $provider and $provider.name or 'missing provider' #set $provider_image = None is not $provider and $provider.image_name() or 'missing.png' #end for
Order Release Size Provider Remove
$oldest items shown#if $getVar('over_limit', False)#, more are available by changing the limit#end if#
#echo 1 == $order and 'Newest' or $oldest == $order and 'Oldest' or '-'##set $order -= 1# #echo re.sub('"', '', $hItem['release'])# #echo ($hItem['size'], '?')[-1 == $hItem['size']]# $provider_name
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')