#import sickbeard #from sickbeard import subtitles, sbdatetime, network_timezones #import sickbeard.helpers #from sickbeard.common import * #from lib import subliminal #import os.path, os #import datetime #set global $title=$show.name ##set global $header = '' % #set global $topmenu="manageShows"# #set $exceptions_string = " | ".join($show.exceptions) #include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl") #if $show_message:
$show_message

#end if

$show.name

#if not $show.imdbid ($show.startyear) - $show.runtime min #if $show.genre: - $show.genre[1:-1].replace('|',' | ') #end if #else #if 'country_codes' in $show.imdb_info: #for $country in $show.imdb_info['country_codes'].split('|') #end for #end if #if 'year' in $show.imdb_info: ($show.imdb_info['year']) - $show.imdb_info['runtimes'] min - $show.imdb_info['genres'].replace('|',' | ') #end if [imdb] #end if $sickbeard.indexerApi($show.indexer).name #if $xem_numbering or $xem_absolute_numbering: [xem] #end if #if $seasonResults: ##There is a special/season_0?## #if int($seasonResults[-1]["season"]) == 0: #set $season_special = 1 #else: #set $season_special = 0 #end if #if not $sickbeard.DISPLAY_SHOW_SPECIALS and $season_special: $seasonResults.pop(-1) #end if
#if (len($seasonResults) > 14): #else: Season: #for $seasonNum in $seasonResults: #if int($seasonNum["season"]) == 0: Specials #else: ${str($seasonNum["season"])} #end if #if $seasonNum != $seasonResults[-1]: | #end if #end for #end if #if $season_special: Display Specials: #if sickbeard.DISPLAY_SHOW_SPECIALS: Hide #else: Show #end if #end if
#end if
#if $show.network and $show.airs: #else if $show.network: #else if $show.airs: #end if #if $showLoc[1]: #else: #end if #set $anyQualities, $bestQualities = $Quality.splitQuality(int($show.quality))
Originally Airs: $show.airs #if not $network_timezones.test_timeformat($show.airs) then " (invalid Timeformat) " else ""# on $show.network
Originally Airs: $show.network
Originally Airs: >$show.airs #if not $network_timezones.test_timeformat($show.airs) then " (invalid Timeformat) " else ""#
Status: $show.status
Location: $showLoc[0]
Location: $showLoc[0] (dir is missing)
Quality: #if $show.quality in $qualityPresets: $qualityPresetStrings[$show.quality] #else: #if $anyQualities: Initial: <%=", ".join([Quality.qualityStrings[x] for x in sorted(anyQualities)])%> #if $bestQualities then "
" else ""# #end if #if $bestQualities: Replace with: <%=", ".join([Quality.qualityStrings[x] for x in sorted(bestQualities)])%> #end if #end if
Scene Name:#if $show.exceptions then $exceptions_string else $show.name#
#if $sickbeard.USE_SUBTITLES #end if #if $anyQualities + $bestQualities #end if #if $bwl.get_white_keywords_for("gloabl"): #end if #if $bwl.get_black_keywords_for("gloabl"): #end if #if $bwl.get_white_keywords_for("release_group"): #end if #if $bwl.get_black_keywords_for("release_group"): #end if
Info Language:$show.lang
Subtitles: \"Y"
Flat Folders: \"Y"
Paused: \"Y"
Air-by-Date: \"Y"
Sports: \"Y"
Anime: \"Y"
DVD Order: \"Y"
Scene Numbering: \"Y"
Archive First Match: \"Y"
Whitelist: #echo ', '.join($bwl.get_white_keywords_for("gloabl"))#
Blacklist: #echo ', '.join($bwl.get_black_keywords_for("gloabl"))#
Wanted Group#if len($bwl.get_white_keywords_for("release_group"))>1 then "s" else ""#: #echo ', '.join($bwl.get_white_keywords_for("release_group"))#
Unwanted Group#if len($bwl.get_black_keywords_for("release_group"))>1 then "s" else ""#: #echo ', '.join($bwl.get_black_keywords_for("release_group"))#
#set $curSeason = -1 #set $odd = 0
Change selected episodes to

#for $epResult in $sqlResults: #if not $sickbeard.DISPLAY_SHOW_SPECIALS and int($epResult["season"]) == 0: #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: #if $show.is_anime then "" else ""# #if $scene then "" else ""# #if $scene_anime then "" else ""##if $sickbeard.USE_SUBTITLES and $show.subtitles then "" else ""# #set $curSeason = int($epResult["season"]) #end if #set $epStr = str($epResult["season"]) + "x" + str($epResult["episode"]) #set $epLoc = $epResult["location"] #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 $curQuality != Quality.NONE: #else: #end if #end for

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

NFOTBNEpisodeAbsoluteScene #Scene AbsoluteNameAirdateFilenameSubtitlesStatusSearch
#if int($epResult["status"]) != $UNAIRED " name="<%=str(epResult["season"]) +"x"+str(epResult["episode"]) %>" /> #end if \"Y" \"Y" $epResult["episode"]$epResult["absolute_number"] " title="Change the value here if scene numbering differs from the indexer episode numbering" #if $dfltEpNumbering: value="" #else value="<%=str(scSeas) + 'x' + str(scEpis)%>" #end if style="padding: 0; text-align: center; max-width: 60px;" /> " title="Change the value here if scene absolute numbering differs from the indexer absolute numbering" #if $dfltAbsNumbering: value="" #else value="<%=str(scAbsolute)%>" #end if style="padding: 0; text-align: center; max-width: 60px;" /> #if $epResult["description"] != "" and $epResult["description"] != None: " /> #end if $epResult["name"]
#if int($epResult["airdate"]) == 1 then "never" else $sbdatetime.sbdatetime.sbfdate($network_timezones.parse_date_time($epResult["airdate"],$show.airs,$show.network))#
#if $epLoc and $show._location and $epLoc.lower().startswith($show._location.lower()): #set $epLoc = os.path.basename($epLoc[len($show._location)+1:]) #elif $epLoc and (not $epLoc.lower().startswith($show._location.lower()) or not $show._location): #set $epLoc = os.path.basename($epLoc) #end if #if $epLoc != "" and $epLoc != None: [details] #else $epLoc #end if #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")