#import sickgear #import datetime #from sickgear import network_timezones, WEB_ROOT, THEME_NAME #from sickgear.common import * #from sickgear.sgdatetime import SGDatetime <% 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 = 'Home' #set global $header = 'Show List' #set global $sbPath = '..' #set global $topmenu = 'home' #set global $page_body_attr = 'show-list' #set fuzzydate = 'airdate' #set sg_root = $getVar('sbRoot', WEB_ROOT) ## #import os.path #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl')
$download_stat | #if 'simple' == $layout $cur_show_obj.network #else #set $img_text = ($cur_show_obj.network, 'No Network')[None is $cur_show_obj.network] #if 'No Network' != $img_text and 'nonetwork' in $network_images[$cur_show_obj.tvid_prodid] $cur_show_obj.network #else #end if #end if | #if $cur_show_obj.quality in $qualityPresets $qualityPresetStrings[$cur_show_obj.quality] #else Custom #end if |
Next Ep | Show | Network | Quality | Downloads | Active | Status | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add Show | |||||||||||
(loading) | #if None is $curLoadingShow.show_obj Loading... ($curLoadingShow.show_name) #else $getattr($curLoadingShow.show_obj, 'unique_name', $curLoadingShow.show_obj.name) #end if | ||||||||||
$SGDatetime.sbfdate($ldatetime) $ldatetime.strftime('%Y%m%d%H%M') |
#else
#end if #if 'small' == $layout | #else if 'banner' == $layout | $display_name | #else if 'simple' == $layout$display_name | #end if #if 'simple' != $layout #set $img_text = ($cur_show_obj.network, 'No Network')[None is $cur_show_obj.network]#if 'No Network' != $img_text and 'nonetwork' in $network_images[$cur_show_obj.tvid_prodid] $cur_show_obj.network #else $cur_show_obj.network #end if | #else$cur_show_obj.network $cur_show_obj.network | #end if #if $cur_show_obj.quality in $qualityPresets$qualityPresetStrings[$cur_show_obj.quality] | #elseCustom | #end if
|
#set $display_status = $cur_show_obj.status #if None is not $display_status #if re.search(r'(?i)(?:(?:new|returning)\s*series|upcoming)', $cur_show_obj.status) #set $display_status = 'Continuing' #else if re.search(r'(?i)(?:nded)', $cur_show_obj.status) #set $display_status = 'Ended' #end if #end if $display_status |