#import sickgear #from sickgear.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(sickgear, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickgear, varname, default) %>#slurp# ########## ## legacy #set $provided_tvid = $getVar('provided_tvid', $getVar('provided_indexer', 1)) #set $provided_prodid = $getVar('provided_prodid', None) or $getVar('provided_indexer_id', 0) #set $provided_show_name = $getVar('provided_show_name', None) or $getVar('provided_indexer_name', '') ## #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 $sickgear.TVInfoAPI().sources if $sickgear.TVInfoAPI(i).config.get('active', False) and not $sickgear.TVInfoAPI(i).config.get('defunct', False)]) + 1 #if $varExists('header')

$header

#else

$title

#end if #for $cur_icon in $infosrc_icons##end for#
#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('folder') #end if #if $kwargs.get('action') #end if #if $use_provided_info #set $provided_tvid_local = $provided_tvid #set $provided_prodid_local = $provided_prodid Show: $provided_show_name #else #set $multi_infosrc = $getVar('infosrc', None) and 1 < $len($infosrc) #if not $multi_infosrc #end if    * #if $multi_infosrc #end if  
##

Show name and/or ([imdb, tmdb, trakt, tvdb, tvmaze]: + id) or URL.  *SickGear supports english, language is used for show/episode data

#set $try_num = 2 clear or try : show name#slurp# ## no indent #for $cur_idx, $cur_tip in enumerate($try_id)##set $try_num += 1#|$next(iter($cur_tip))#end for##slurp #for $cur_idx, $cur_tip in enumerate($try_id_name)##set $try_num += 1#|$next(iter($cur_tip))#end for##slurp #for $cur_idx, $cur_tip in enumerate($try_url)##set $try_num += 1#|$next(iter($cur_tip))#end for# *SickGear is en, language is used for show/episode lists

#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')