#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 $sickbeard.indexerApi($show.indexer).name #else #for $country in $show.imdb_info['country_codes'].split('|') #end for ($show.imdb_info['year']) - $show.imdb_info['runtimes'] min - $show.imdb_info['genres'].replace('|',' | ') [imdb] $sickbeard.indexerApi($show.indexer).name #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)) #if $all_scene_exceptions: #end if
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#
Alternate Scene Names: #for $one_exception in sorted($all_scene_exceptions) $one_exception
#end for
#if $sickbeard.USE_SUBTITLES #end if #if $bestQualities #end if
Info Language:$show.lang
Subtitles: \"Y"
Flat Folders: \"Y"
Paused: \"Y"
Air-by-Date: \"Y"
DVD Order: \"Y"
Archive First Match: \"Y"
#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 #if int($epResult["season"]) != $curSeason: #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 $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"])#

NFOTBNEpisodeScene #NameAirdateFilenameSubtitlesStatusSearch
#if int($epResult["status"]) != $UNAIRED " name="<%=str(epResult["season"]) +"x"+str(epResult["episode"]) %>" /> #end if \"Y" \"Y" $epResult["episode"] #if int($show.air_by_date) != 1 #if (epResult["season"], epResult["episode"]) in $xem_numbering: #set ($dfltSeas, $dfltEpis) = $xem_numbering[(epResult["season"], epResult["episode"])] #else #set ($dfltSeas, $dfltEpis) = (epResult["season"], epResult["episode"]) #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 " 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;" /> #else N/A #end if #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 $epLoc #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")