#import re #import sickgear #from sickgear import TVInfoAPI #from sickgear.helpers import anon_url #from sickgear.tv import PersonGenders #from six import iteritems <% def sg_var(varname, default=False): return getattr(sickgear, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickgear, varname, default) %>#slurp# ## #set global $title = 'Character' #if $character.name #set global $title = $character.name + ' (Character)' #end if #set global $header = 'Character' #set global $sbPath = '../..' #set global $topmenu = 'Character' #set $css = $getVar('css', 'reg') #set global $page_body_attr = 'cast-role" class="' + $css ## #import os.path #set global $inc_ofi = True #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl') #if $varExists('header')
$cur_char['character_name'] #else
$cur_char['character_name'] #end if in $cur_char['show_obj'].name #if 1 < $len($character.person)# by $cur_char.person_name#end if#
$re.sub(r'\s+.*?CC-BY-SA.*?$', '', $character.biography).replace('\n', '
')