#import sickbeard #from sickbeard import common #from sickbeard import exceptions #set global $title="Test Rename" #set global $header = '%s' % ($show.indexerid, $show.name) #set global $sbPath=".." #set global $topmenu="home"# #import os.path #include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl") #if $varExists('header')

$header

#else

$title

#end if

Preview of the proposed name changes

#if int($show.air_by_date) == 1 and $sickbeard.NAMING_CUSTOM_ABD: $sickbeard.NAMING_ABD_PATTERN #else $sickbeard.NAMING_PATTERN #end if
#set $curSeason = -1 #set $odd = False #for $cur_ep_obj in $ep_obj_list: #set $curLoc = $cur_ep_obj.location[len($cur_ep_obj.show.location)+1:] #set $curExt = $curLoc.split('.')[-1] #set $newLoc = $cur_ep_obj.proper_path() + '.' + $curExt #if int($cur_ep_obj.season) != $curSeason: #set $curSeason = int($cur_ep_obj.season) #end if #set $odd = not $odd #set $epStr = str($cur_ep_obj.season) + "x" + str($cur_ep_obj.episode) #set $epList = sorted([cur_ep_obj.episode] + [x.episode for x in cur_ep_obj.relatedEps]) #if len($epList) > 1: #set $epList = [$min($epList), $max($epList)] #end if #end for

#if int($cur_ep_obj.season) == 0 then "Specials" else "Season "+str($cur_ep_obj.season)#

Episode Old Location New Location
" /> <%= "-".join(map(str, epList)) %> $curLoc $newLoc

#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_bottom.tmpl")