#import sickgear #from sickgear.common import * #from sickgear.helpers import get_size, human ## #set global $title = 'Bulk Change' #set global $header = 'Bulk Change' #set global $sbPath = '../..' #set global $topmenu = 'manage' <% def sg_var(varname, default=False): return getattr(sickgear, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickgear, varname, default) %>#slurp# ## #import os.path #include $os.path.join($sickgear.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') ## #if $varExists('header')

$header

#else

$title

#end if
$xsrf_form_html #if $enable_tvinfo #end if #if $has_any_sports #end if #if $has_any_anime #end if #if $has_any_flat_folders #end if #if $sickgear.USE_SUBTITLES #end if #set $disabled = ' disabled="disabled"' #set $disabled_inprogress_tip = ' 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' #set $max = $high + 100 #for $cur_show_obj in $shows + $shows_no_loc #set $show_loc = $cur_show_obj.path #set $show_size = $max if not $show_loc else $get_size($show_loc) #set $option_state = '' ## #set $curUpdate_disabled = $sickgear.show_queue_scheduler.action.is_being_updated($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_update_queue($cur_show_obj) #set $tip = ' title="Update%s"' % ('', $disabled_inprogress_tip)[$curUpdate_disabled] #set $curUpdate = ($tip, $option_state % (('', $disabled)[$curUpdate_disabled], 'update', $tip)) ## #set $curRefresh_disabled = $sickgear.show_queue_scheduler.action.is_being_refreshed($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_refresh_queue($cur_show_obj) #set $tip = ' title="Rescan%s"' % ('', $disabled_inprogress_tip)[$curRefresh_disabled] #set $curRefresh = ($tip, $option_state % (('', $disabled)[$curRefresh_disabled], 'refresh', $tip)) ## #set $curRename_disabled = $sickgear.show_queue_scheduler.action.is_being_renamed($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_rename_queue($cur_show_obj) #set $tip = ' title="Rename%s"' % ('', $disabled_inprogress_tip)[$curRename_disabled] #set $curRename = ($tip, $option_state % (('', $disabled)[$curRename_disabled], 'rename', $tip)) ## #set $subtitles_disabled = not $cur_show_obj.subtitles\ or $sickgear.show_queue_scheduler.action.is_being_subtitled($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_subtitle_queue($cur_show_obj) #set $tip = (' title="Search subtitle"', (' title="Search subtitle%s"' % $disabled_inprogress_tip, $disabled_subtitles_tip)[not $cur_show_obj.subtitles])[$subtitles_disabled] #set $curSubtitle = ($tip, $option_state % (('', $disabled)[$subtitles_disabled], 'subtitle', $tip)) ## #set $curDelete_disabled = $sickgear.show_queue_scheduler.action.is_being_renamed($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_rename_queue($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_refresh_queue($cur_show_obj) #set $tip = ' title="Delete%s"' % ('', $disabled_inprogress_tip)[$curDelete_disabled] #set $curDelete = ($tip, $option_state % (('', $disabled)[$curDelete_disabled], 'delete', $tip)) ## #set $curRemove_disabled = $sickgear.show_queue_scheduler.action.is_being_renamed($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_rename_queue($cur_show_obj)\ or $sickgear.show_queue_scheduler.action.is_in_refresh_queue($cur_show_obj) #set $tip = ' title="Remove%s"' % ('', $disabled_inprogress_tip)[$curRemove_disabled] #set $curRemove = ($tip, $option_state % (('', $disabled)[$curRemove_disabled], 'remove', $tip)) #set $display_name = (re.sub(r'^((?:A(?!\s+to)n?)|The)\s(\w)', r'\1 \2', getattr($cur_show_obj, 'unique_name', $cur_show_obj.name)), getattr($cur_show_obj, 'unique_name', $cur_show_obj.name))[$sickgear.SORT_ARTICLE] #if $enable_tvinfo #end if #if $cur_show_obj.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 $curUpdate[1] $curRefresh[1] $curRename[1] #if $sickgear.USE_SUBTITLES $curSubtitle[1] #end if $curDelete[1] $curRemove[1] #end for
Edit
Show Name
Size
Σ
TV Info
Quality
Sports
Scene
Anime
Flat Folders
Paused
Status
#if not $show_loc##end if#$display_name #if 0 <= $show_size < $max#$human($show_size)#end if#$qualityPresetStrings[$cur_show_obj.quality]Custom $cur_show_obj.status
#include $os.path.join($sickgear.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')