#import sickbeard #from sickbeard.helpers import anon_url ## #set global $header = ('Add from TV info source', '%s::%s' % ($kwargs.get('action'), $default_show_name))[any([$kwargs.get('action')])] #set global $title = ('Add from TV info source', '%s::%s' % ($kwargs.get('action'), $default_show_name))[any([$kwargs.get('action')])] #set global $sbPath = '../..' #set global $statpath = '../..' #set global $topmenu = 'home' <% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp# ## #import os.path #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl') #set indexer_count = len([$i for $i in $sickbeard.indexerApi().indexers if $sickbeard.indexerApi(i).config.get('active', False) and not $sickbeard.indexerApi(i).config.get('defunct', False)]) + 1 #if $varExists('header')

$header

#else

$title

#end if
#if not $kwargs.get('action')
aoeu

#end if
$xsrf_form_html

#if $use_provided_info#Using known show information#else#Find show at TV info source#end if#

#if $kwargs.get('action') #end if #if $use_provided_info #set $provided_indexer_local = $provided_indexer #set $provided_indexer_id_local = $provided_indexer_id Show: $provided_indexer_name #else #if 2 > $len($indexers) #end if    * #if 1 < $len($indexers) #end if  

Enter show name, TVDB ID, IMDb Url, or IMDb ID.  *SickGear supports english, language is used for show/episode data

#end if
 
#if not $kwargs.get('action') #for $curNextDir in $other_shows #end for #end if

#if not $kwargs.get('action') #else #end if #if $provided_show_dir #end if
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_bottom.tmpl')