#import sickbeard #from sickbeard import subtitles, sbdatetime, network_timezones #import sickbeard.helpers #from sickbeard.common import * #from sickbeard.helpers import anon_url #from lib import subliminal #import os.path, os #import datetime #set global $title = $show.name #set global $topmenu = 'home' #set $exceptions_string = ', '.join($show.exceptions) #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') #if $sickbeard.USE_IMDB_INFO: #end if #if $sickbeard.DISPLAY_BACKGROUND:
#end if
Change Show:
#if $show_message:
$show_message
#end if #if $sickbeard.DISPLAY_BACKGROUND: #set $infotag = 'info-tag-bg' #set $genretag = 'genre-tag-bg' #else #set $infotag = 'info-tag-nobg' #set $genretag = 'genre-tag-nobg' #end if
#if int($show.paused) == 1:
#end if
#if $seasonResults: ##There is a special/season_0?## #set $season_special = (0, 1)[0 == int($seasonResults[-1]['season'])] #if not $sickbeard.DISPLAY_SHOW_SPECIALS and $season_special: $seasonResults.pop(-1) #end if
#if $season_special: Display Specials: #if sickbeard.DISPLAY_SHOW_SPECIALS: Hide #else: Show #end if #end if
Season: #if (len($seasonResults) > 11): #else: #for $seasonNum in $seasonResults: #if 0 == int($seasonNum['season']): Specials #else: ${str($seasonNum['season'])} #end if #end for #end if
#end if

$show.name

#if not $show.imdbid #if $show.genre: #for $genre in $show.genre[1:-1].replace('Science-Fiction','Sci-Fi').split('|') $genre #end for #end if #end if #if $sickbeard.USE_IMDB_INFO and 'genres' in $show.imdb_info and '' != $show.imdb_info['genres']: #for $imdbgenre in $show.imdb_info['genres'].split('|') $imdbgenre #end for #end if
    #if not $show.imdbid #set $runtime = $show.runtime #set $startyear = $show.startyear #else #if $sickbeard.USE_IMDB_INFO and 'countries' in $show.imdb_info: #set $country = $show.imdb_info['countries'] #end if #if $sickbeard.USE_IMDB_INFO and 'year' in $show.imdb_info: #set $runtime = $show.imdb_info['runtimes'] #set $startyear = $show.imdb_info['year'] #end if #end if #set $_show = $show
  • Indexers: #if $sickbeard.USE_IMDB_INFO and $show.imdbid [imdb] #end if $sickbeard.indexerApi($show.indexer).name #if $xem_numbering or $xem_absolute_numbering: [xem] #end if
  • Premiered: $startyear #if $sickbeard.USE_IMDB_INFO and 'country_codes' in $show.imdb_info and '' != $show.imdb_info['country_codes']: #for $country in $show.imdb_info['country_codes'].split('|') #end for #end if
  • #if $show.network and $show.airs:
  • Airs: $show.airs.replace('y','y,') #if not $network_timezones.test_timeformat($show.airs) then " (invalid Timeformat) " else ""#
  • Network: $show.network
  • #else if $show.network:
  • Network: $show.network
  • #else if $show.airs:
  • Airs: $show.airs.replace('y','y,') #if not $network_timezones.test_timeformat($show.airs) then " (invalid Timeformat) " else ""#
  • #end if
  • Runtime: $runtime minutes
  • #if '' != $show.status:
  • Status: $show.status
  • #end if #if $sickbeard.USE_IMDB_INFO and 'rating' in $show.imdb_info #if '' != $show.imdb_info['votes'] #set $rating_tip = '%s of 10 stars
    %s votes' % (str($show.imdb_info['rating']), str($show.imdb_info['votes']))
  • IMDB Rating: $show.imdb_info['rating']
  • #else
  • IMDB Rating: 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:
  • Initial: <%=", ".join([Quality.qualityStrings[x] for x in sorted(anyQualities)])%>
  • #end if #if $bestQualities:
  • Replace with: <%=", ".join([Quality.qualityStrings[x] for x in sorted(bestQualities)])%>
  • #end if #end if
#if $show.overview != '': $show.overview #else No plot overview available. #end if
$show.lang #if $showLoc[1]: $showLoc[0] #else: $showLoc[0] #end if $sickbeard.helpers.human(sickbeard.helpers.get_size($showLoc[0])) #set $filecount = $epCounts[$Overview.QUAL] + $epCounts[$Overview.GOOD] $filecount Files #if $show.exceptions: Scene Names #end if #if $sickbeard.USE_SUBTITLES #if int($show.subtitles) == 1: Subtitles #end if #end if #if $show.flatten_folders == 1 or $sickbeard.NAMING_FORCE_FOLDERS: Flat Folders #end if #if int($show.air_by_date) == 1: Air-by-Date #end if #if int($show.is_sports) == 1: Sports #end if #if int($show.is_anime) == 1: Anime #end if #if int($show.dvdorder) == 1: DVD Order #end if #if int($show.scene) == 1: Scene Numbering #end if #if $anyQualities + $bestQualities #if int($show.archive_firstmatch) == 1 Archive First Match #end if #end if #if $show.rls_require_words: Required Words #end if #if $show.rls_ignore_words: Ignored Words #end if #if $bwl and $bwl.whitelist: Wanted Group#if len($bwl.whitelist)>1 then "s" else ""# #end if #if $bwl and $bwl.blacklist: Unwanted Group#if len($bwl.blacklist)>1 then "s" else ""# #end if

Change selected episodes to

#set $curSeason = -1 #set $seasonCount = 0 #set $odd = 0 #for $epResult in $sqlResults: #set $epStr = str($epResult['season']) + 'x' + str($epResult['episode']) #if not $epStr in $epCats: #continue #end if #if not $sickbeard.DISPLAY_SHOW_SPECIALS and 0 == int($epResult['season']): #continue #end if #set $scene = False #set $scene_anime = 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 #set ($dfltSeas, $dfltEpis, $dfltAbsolute) = (0, 0, 0) #if (epResult['season'], epResult['episode']) in $xem_numbering: #set ($dfltSeas, $dfltEpis) = $xem_numbering[(epResult['season'], epResult['episode'])] #end if #if epResult['absolute_number'] in $xem_absolute_numbering: #set $dfltAbsolute = $xem_absolute_numbering[epResult['absolute_number']] #end if #if epResult['absolute_number'] in $scene_absolute_numbering: #set $scAbsolute = $scene_absolute_numbering[epResult['absolute_number']] #set $dfltAbsNumbering = False #else #set $scAbsolute = $dfltAbsolute #set $dfltAbsNumbering = True #end if #if (epResult['season'], epResult['episode']) in $scene_numbering: #set ($scSeas, $scEpis) = $scene_numbering[(epResult['season'], epResult['episode'])] #set $dfltEpNumbering = False #else #set ($scSeas, $scEpis) = ($dfltSeas, $dfltEpis) #set $dfltEpNumbering = True #end if #if int($epResult['season']) != $curSeason: #set $seasonCount = $seasonCount + 1 #if $sickbeard.DISPLAY_ALL_SEASONS == False and $seasonCount >= 2: #end if #if $show.is_anime: #end if #if $scene: #end if #if $scene_anime: #end if #if $sickbeard.USE_SUBTITLES and $show.subtitles: #end if #set $curSeason = int($epResult['season']) #end if #set $epLoc = $epResult['location'] #set never_aired = 0 < $curSeason and 1 == int($epResult['airdate']) #if $show.is_anime: #end if #if $scene: #elif $scene_anime: #end if #if $sickbeard.USE_SUBTITLES and $show.subtitles: #end if #set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($epResult['status'])) #if Quality.NONE != $curQuality: #else: #end if #end for #if $sickbeard.DISPLAY_ALL_SEASONS == False and $seasonCount > 1: #end if
#if $sickbeard.DISPLAY_ALL_SEASONS == False and $seasonCount >= 1: #end if

#if 0 == int($epResult['season']) then 'Specials' else 'Season ' + str($epResult['season'])#

EpisodeAbsoluteSceneScene AbsoluteName AirdateSubtitlesStatus Search
#if $UNAIRED != int($epResult['status']) and not $never_aired #end if Y' else 'nfo-no.gif Y' else 'tbn-no.gif #if $epLoc and $show._location and $epLoc.lower().startswith($show._location.lower()): #set $epLoc = $epLoc[len($show._location)+1:] #elif $epLoc and (not $epLoc.lower().startswith($show._location.lower()) or not $show._location): #set $epLoc = $epLoc #end if #if '' != $epLoc and None != $epLoc: $epResult["episode"] #else $epResult['episode'] #end if $epResult['absolute_number'] #if '' != $epResult['description'] and None != $epResult['description']: #else: #end if $epResult['name'] #if 1 == int($epResult['airdate']) then 'never' else $sbdatetime.sbdatetime.sbfdate($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($epResult['airdate'], $show.airs, $show.network)))# #if $epResult['subtitles']: #for $sub_lang in subliminal.language.language_list($epResult['subtitles'].split(',')): #if '' != sub_lang.alpha2 ${sub_lang} #end if #end for #end if $statusStrings[$curStatus] $Quality.qualityStrings[$curQuality]$statusStrings[$curStatus]
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')