#import sickbeard #from sickbeard.common import * ## #set global $title = 'Bulk Change' #set global $header = 'Bulk Change' #set global $sbPath = '../..' #set global $topmenu = 'manage' ## #import os.path #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') ## #set $has_any_sports = False #set $has_any_anime = False #set $has_any_flat_folders = False #set $myShowList = $sickbeard.showList $myShowList.sort(lambda x, y: cmp(x.name, y.name)) #for $curShow in $myShowList #set $has_any_sports |= bool($curShow.sports) #set $has_any_anime |= bool($curShow.anime) #set $has_any_flat_folders |= $bool(curShow.flatten_folders) #end for #if $varExists('header')

$header

#else

$title

#end if
$xsrf_form_html #if $has_any_sports #end if #if $has_any_anime #end if #if $has_any_flat_folders #end if #if $sickbeard.USE_SUBTITLES #end if ## #set $disabled = ' disabled="disabled"' #set $disabled_inprogress_tip = ' title="%s action is currently in progress for this show"' #set $disabled_subtitles_tip = ' title="Use edit to enable subtitle search for this show"' #set $no = 'no16.png" title="No" alt="No' #set $yes = 'yes16.png" title="Yes" alt="Yes' #for $curShow in $myShowList #set $option_state = ''.format(str($curShow.indexerid)) ## #set $curUpdate_disabled = $sickbeard.showQueueScheduler.action.isBeingUpdated($curShow)\ or $sickbeard.showQueueScheduler.action.isInUpdateQueue($curShow) #set $reason = $disabled_inprogress_tip % 'Update' #set $curUpdate = '%s>%s' % (('', $reason)[$curUpdate_disabled], $option_state % ('update', 'update', ('', $disabled + $reason)[$curUpdate_disabled])) ## #set $curRefresh_disabled = $sickbeard.showQueueScheduler.action.isBeingRefreshed($curShow)\ or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow) #set $reason = $disabled_inprogress_tip % 'Rescan' #set $curRefresh = '%s>%s' % (('', $reason)[$curRefresh_disabled], $option_state % ('refresh', 'refresh', ('', $disabled + $reason)[$curRefresh_disabled])) ## #set $curRename_disabled = $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow)\ or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow) #set $reason = $disabled_inprogress_tip % 'Rename' #set $curRename = '%s>%s' % (('', $reason)[$curRename_disabled], $option_state % ('rename', 'rename', ('', $disabled + $reason)[$curRename_disabled])) ## #set $subtitles_disabled = not $curShow.subtitles\ or $sickbeard.showQueueScheduler.action.isBeingSubtitled($curShow)\ or $sickbeard.showQueueScheduler.action.isInSubtitleQueue($curShow) #set $reason = ($disabled_inprogress_tip % 'Search subtitle', $disabled_subtitles_tip)[not $curShow.subtitles] #set $curSubtitle = '%s>%s' % (('', $reason)[$subtitles_disabled], $option_state % ('subtitle', 'subtitle', ('', $disabled + $reason)[$subtitles_disabled])) ## #set $curDelete_disabled = $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow)\ or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow)\ or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow) #set $reason = $disabled_inprogress_tip % 'Rename or rescan' #set $curDelete = '%s>%s' % (('', $reason)[$curDelete_disabled], $option_state % ('delete', 'delete', ('', $disabled + $reason)[$curDelete_disabled])) ## #set $curRemove_disabled = $sickbeard.showQueueScheduler.action.isBeingRenamed($curShow)\ or $sickbeard.showQueueScheduler.action.isInRenameQueue($curShow)\ or $sickbeard.showQueueScheduler.action.isInRefreshQueue($curShow) ##set $reason = $disabled_inprogress_tip % 'Rename or rescan' #set $curRemove = '%s>%s' % (('', $reason)[$curRemove_disabled], $option_state % ('remove', 'remove', ('', $disabled + $reason)[$curRemove_disabled])) #set $display_name = (re.sub('^((?:A(?!\s+to)n?)|The)\s(\w)', r'\1 \2', $curShow.name), $curShow.name)[$sickbeard.SORT_ARTICLE] #if $curShow.quality in $qualityPresets #else #end if #if $has_any_sports #end if #if $has_any_anime #end if #if $has_any_flat_folders #end if #end for
Edit
Show Name QualitySportsSceneAnimeFlat
Folders
Paused Status Update
Rescan
Rename
Search
Subtitle
Delete
Remove
$display_name$qualityPresetStrings[$curShow.quality]Custom $curShow.status #if $sickbeard.USE_SUBTITLES #end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')