#import sickbeard #from sickbeard import indexerApi, indexermapper, network_timezones #from sickbeard.common import Overview, qualityPresets, qualityPresetStrings, \ Quality, statusStrings, WANTED, SKIPPED, ARCHIVED, IGNORED, FAILED, DOWNLOADED #from sickbeard.helpers import anon_url, get_size, human, maybe_plural #from sickbeard.indexers.indexer_config import INDEXER_TVDB, INDEXER_IMDB <% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp# ## #set global $title = $show.name #set global $topmenu = 'home' #set $exceptions_string = ', '.join($show.exceptions) #set $css = $getVar('css', 'reg') #set $has_art = $getVar('has_art', None) #set $restart = 'Restart SickGear for new features on this page' #set $show_message = ($show_message, $restart)[None is $has_art] #set global $page_body_attr = 'display-show" class="' + $css #set theme_suffix = ('', '-dark')['dark' == $sg_str('THEME_NAME', 'dark')] ## #import os.path, os, re #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl') #if $sg_var('USE_IMDB_INFO') #end if
#if $has_art #end if
Change show: #set $displayshowlist = [] #set $cur_sel = 0 #for $curShowList in $sortedShowLists #set $curShowType = $curShowList[0] #set $curShowList = $curShowList[1] #if 1 < len($sortedShowLists) #set void = $displayshowlist.append('\t\t\t' % $curShowType) #end if #for $curShow in $curShowList #set $show_ended = '' != $curShow.status and $curShow.status in ['ended', 'Ended', 'Canceled'] #set void = $displayshowlist.append('\t\t\t' % (('', 'class="ended" ')[$show_ended], $curShow.indexerid, ('', ' selected="selected"')[$curShow == $show], $curShow.name)) #end for #if 1 < len($sortedShowLists) #set void = $displayshowlist.append('\t\t\t') #end if #end for ##
#if $show_message
$show_message
#end if
#if int($show.paused)
#end if
#if 0 < len($seasons) #set $show_ended = '' != $show.status and $show.status in ['ended', 'Ended', 'Canceled']
#if $getVar('has_special', 0 == $seasons[-1][0]) Specials #if $sg_var('DISPLAY_SHOW_SPECIALS')#View-#end if##echo ('Show', 'Hide')[$sg_var('DISPLAY_SHOW_SPECIALS')]# #end if
#set $many_seasons = 12 < len($seasons)
Season #set $season_list = [s[0] for s in $seasons] #if $many_seasons #else #for $number in $season_list #if 0 != $number $number #end if #end for #end if
#end if

$show.name#echo ('', ' (ended)')[$show_ended]#

#set $genres_done = False #if $sg_var('USE_IMDB_INFO') and 'genres' in $show.imdb_info and '' != $show.imdb_info['genres'] #for $imdbgenre in $show.imdb_info['genres'].split('|') #set $genres_done = True $imdbgenre.replace('Sci-Fi','Science-Fiction') #end for #end if #if not $genres_done and $show.genre #for $genre in $show.genre[1:-1].split('|') #set $genres_done = True $genre #end for# #end if #if not $genres_done No genres #end if
Links #set $tvdb_id = None #for $src_id, $src_name in $indexerApi().all_indexers.iteritems() #if $indexerApi($src_id).config.get('defunct') and $src_id != $show.indexer #continue #end if #if $src_id in $show.ids and $show.ids[$src_id].get('id', 0) > 0 and $indexermapper.MapStatus.NOT_FOUND != $show.ids[$src_id]['status'] #if $INDEXER_TVDB == $src_id #set $tvdb_id = $show.ids[$src_id]['id'] #end if #if $INDEXER_IMDB == $src_id and not $sg_var('USE_IMDB_INFO') #continue #end if #if not $indexerApi($src_id).config.get('defunct') #else# #end if# $src_name #end if #end for #if $has_art and $tvdb_id Fanart.tv #end if #if $xem_numbering or $xem_absolute_numbering [xem] #end if
#set $startyear, $flags, $runtime = (None, False, None) #if $sg_var('USE_IMDB_INFO') and $show.imdbid #if 'year' in $show.imdb_info #set $startyear = $show.imdb_info['year'] or None #end if #set $flags = 'country_codes' in $show.imdb_info and '' != $show.imdb_info['country_codes'] #if 'runtimes' in $show.imdb_info #set $runtime = $show.imdb_info['runtimes'] #end if #end if #if None is $startyear and $show.startyear #set $startyear = $show.startyear #end if #if None is $runtime and $show.runtime #set $runtime = $show.runtime #end if #if $startyear or $flags
Premiered #echo ($startyear, 'Unknown')[None is $startyear]# #if $flags #for $country in $show.imdb_info['country_codes'].split('|') #end for #end if
#end if #if $show.airs #set $showairs = '%s%s' % ($show.airs.replace('y', 'y,'), ('', ' (invalid timeformat)')[not $network_timezones.test_timeformat($show.airs)])
Air#echo ('s', 'ed')[$show_ended]# $showairs
#end if #if $show.network
Network $show.network
#end if #if None is not $runtime
Runtime $runtime minutes
#end if #if $show.status
Status $show.status
#end if #if $sg_var('USE_IMDB_INFO') and 'rating' in $show.imdb_info
IMDb rating #if $show.imdb_info['votes'] #set $rating_tip = '%s of 10 stars
%s votes' % (str($show.imdb_info['rating']), str($show.imdb_info['votes'])) $show.imdb_info['rating'] #else No votes available #end if
#end if #set $anyQualities, $bestQualities = $Quality.splitQuality(int($show.quality)) #if $show.quality in $qualityPresets
Quality $qualityPresetStrings[$show.quality]
#else #if $anyQualities
Qualities #echo ', '.join([$Quality.get_quality_ui($x) for $x in sorted($anyQualities)])#
#end if #if $bestQualities
Upgrade to #echo ', '.join([$Quality.get_quality_ui($x) for $x in sorted($bestQualities)])#
#end if #end if
#set $has_overview = '' != $show.overview #set $ep_tally = ('', '(%s episodes)' % $ep_counts['eps_all'])[0 < $ep_counts['eps_all']]
$ep_tally #if $has_overview $show.overview #else #echo ('', '

')[any($ep_tally)] #if $show_ended #if $varExists('force_update') A force full update may return a plot overview for this ended show #else Restart SickGear to get a new link here for this ended show #end if #else No plot overview available #end if #end if
$showLoc[0] $human($get_size($showLoc[0])) #set $filecount = sum([$c for $k, $c in $ep_counts['videos'].items()]) #set $to_prune = $show.prune - $filecount #set $keep_or_prune = ('', ' (%s)' % ('%s to prune' % abs($to_prune), 'keep %s' % $show.prune)[0 <= $to_prune])[bool($show.prune)] #echo '%s file%s%s' % (('No', $filecount)[0 < $filecount], $maybe_plural($filecount), $keep_or_prune)# #if $show.paused Paused #end if #if ($anyQualities + $bestQualities) and int($show.upgrade_once) Upgrade once #end if #if $show.exceptions Scene names #end if #if $show.rls_ignore_words Ignored words #end if #if $show.rls_require_words Required words #end if #if $show.flatten_folders or $sg_var('NAMING_FORCE_FOLDERS') Flat folders #end if #if int($show.air_by_date) Air by date #end if #if int($show.dvdorder) DVD order #end if #if int($show.scene) Scene numbering #end if #if $sg_var('USE_SUBTITLES') and int($show.subtitles) Subtitles #end if #if int($show.is_sports) Sports #end if #if int($show.is_anime) Anime #end if #if $bwl and $bwl.whitelist Wanted group$maybe_plural(len($bwl.whitelist)) #end if #if $bwl and $bwl.blacklist Unwanted group$maybe_plural(len($bwl.blacklist)) #end if

Change selected episodes to

#if not len($seasons)

No episode details at TV info source $indexerApi($show.indexer).name

#else #set $working_season = -1 #set $odd = 0 #set $scene, $scene_anime = (False, False) #if not $show.air_by_date and not $show.is_sports and not $show.is_anime and $show.is_scene #set $scene = True #elif not $show.air_by_date and not $show.is_sports and $show.is_anime and $show.is_scene #set $scene_anime = True #end if #for $season, $episodes in $seasons #for $ep in $episodes #if None is not $ep #set $ep_str = '%sx%s' % ($season, $ep['episode']) #if $ep_str not in $ep_cats or (0 == $season and not $sg_var('DISPLAY_SHOW_SPECIALS')) #continue #end if #end if #if $working_season != $season #if 0 <= $working_season #end if #set $working_season = $season #set $human_season = ('Season %s' % $season, 'Specials')[0 == $season] ## one off variable migration, on next version apply... (s/$getVar('display_seasons', [])/[]/), #set $attr_title_ep = ('', ' (Anime #)')[$show.is_anime] #if $scene or $scene_anime #end if# #if $sg_var('USE_SUBTITLES') and $show.subtitles #end if #end if #if None is $ep #continue #end if #set global $episode = $ep #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_displayShow.tmpl') #end for #end for
#if None is $has_art#Restart SickGear to reveal new options here #elif not (1 == $lowest_season and 1 == $latest_season and $latest_season >= $highest_season) #end if #set $videos = $ep_counts['videos'].get($season, '0') #set $season_stats = $ep_counts['status'].get($season, {}) #set $snatched = $season_stats.get($Overview.SNATCHED, None) #set $wanted = $season_stats.get($Overview.WANTED, None) #set $qual = $season_stats.get($Overview.QUAL, None) #set $good = $season_stats.get($Overview.GOOD, '0') #set $archived = False if $season not in $ep_counts['archived'] else $ep_counts['archived'][$season]

$human_season #if None is not $has_art  D: $good #if snatched# S: $snatched #end if##if $wanted# W: $wanted #end if##if $qual# LQ: $qual #end if# of $ep_counts['totals'][$season]#if 0 < $archived# with $archived archived#end if##if int($videos)# #echo ('with', 'and')[0 < $archived]# $videos file$maybe_plural($videos)#end if# #end if

#Scene#if $scene_anime# absolute#end if#Name Air DateSubtitlesStatus Search
#end if
#if None is not $has_art #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_livepanel.tmpl') #end if #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_bottom.tmpl')