#import sickbeard #import lib.adba as adba #from sickbeard import (blackandwhitelist, common, exceptions, helpers, scene_exceptions) #from sickbeard.helpers import anon_url <% 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 = 'Edit ' + $show.name #set global $header = $show.name #set global $sbPath = '..' #set global $topmenu = 'home' #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 = (None, $restart)[None is $has_art] #set global $page_body_attr = 'edit-show" class="' + $css ## #import os.path #from urllib import quote_plus #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl') #if $varExists('header')

Edit $header

#else

$title

#end if ## #set $html_checked = ' checked="checked"' #set $html_disabled = ' disabled="disabled"'
#if $has_art #end if
#if $show_message
$show_message
#end if
Alternative release name(s)

Enter one.. e.g. Show, Show (2016), or The Show (US)

searching and post-processing require the alternatives if "Show not found" errors are in the logs

#set $qualities = $common.Quality.splitQuality(int($show.quality)) #set global $anyQualities = $qualities[0] #set global $bestQualities = $qualities[1] #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_qualityChooser.tmpl') #if $anyQualities + $bestQualities #end if
#if $show.is_anime #import sickbeard.blackandwhitelist #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_blackwhitelist.tmpl') #end if
#set $dev = True #set $dev = None
#set $is_master_settable = False #for $src_id, $src_name in $sickbeard.indexerApi().all_indexers.iteritems() #set $is_master_settable |= ($dev or ($src_id != $show.indexer and $show.ids[$src_id].get('id', 0) > 0 and $src_id in $sickbeard.indexerApi().indexers and not $sickbeard.indexerApi($src_id).config.get('defunct') and $sickbeard.indexerApi($src_id).config.get('active'))) #if $is_master_settable #break #end if #end for #set $search_name = quote_plus($sickbeard.indexermapper.clean_show_name($show.name)) #for $src_id, $src_name in $sickbeard.indexerApi().all_indexers.iteritems() #set $ok_src_id = $show.ids[$src_id].get('id', 0) > 0 #set $maybe_master = ($src_id != $show.indexer and $src_id in $sickbeard.indexerApi().indexers and not $sickbeard.indexerApi($src_id).config.get('defunct') and $sickbeard.indexerApi($src_id).config.get('active')) #set $settable_master = ($dev or ($ok_src_id and $maybe_master))
#if $src_id in $show.ids #set $src_search_url = sickbeard.indexerApi($src_id).config.get('finder') #set $use_search_url = $src_search_url #set $data_link = 'data-' #if $ok_src_id and $sickbeard.indexermapper.MapStatus.NOT_FOUND != $show.ids[$src_id]['status'] #set $data_link = '' #set $use_search_url = False #end if $src_name #end if $src_name #if $src_id != $show.indexer #if $settable_master #end if #else #end if
#end for

invalid values can break finding episode and TV info

or

for unlocked IDs

Saving...
Cancel Edit
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_bottom.tmpl')