mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-12 14:13:38 +00:00
ee458bd211
Show root dirs can not be set from general config menu. Mass editing shows now has the ability to delete root dirs as well as edit them. Daily search no longer is restricted to just 1 week of results for searching from which now allows for replacing lower quality downloads with higher quality ones if available. RSS Cache is updated for each provider on demand now when performing manual, failed, backlog, or daily searches.
170 lines
7.5 KiB
Cheetah
170 lines
7.5 KiB
Cheetah
#import sickbeard
|
|
#from sickbeard import common
|
|
#from sickbeard import exceptions
|
|
#set global $title="Mass Edit"
|
|
#set global $header="Mass Edit"
|
|
|
|
#set global $sbPath=".."
|
|
|
|
#set global $topmenu="manage"#
|
|
#import os.path
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
|
#if $quality_value != None:
|
|
#set $initial_quality = int($quality_value)
|
|
#else:
|
|
#set $initial_quality = $common.SD
|
|
#end if
|
|
#set $anyQualities, $bestQualities = $common.Quality.splitQuality($initial_quality)
|
|
<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/massEdit.js?$sbPID"></script>
|
|
|
|
<form action="massEditSubmit" method="post">
|
|
<input type="hidden" name="toEdit" value="$showList" />
|
|
|
|
<div class="optionWrapper">
|
|
<span class="selectTitle">Root Directories <span class="separator">*</span></span><br />
|
|
#for $cur_dir in $root_dir_list:
|
|
#set $cur_index = $root_dir_list.index($cur_dir)
|
|
<div style="padding: 6px 0 3px 25px;">
|
|
<input class="btn edit_root_dir" type="button" class="edit_root_dir" id="edit_root_dir_$cur_index" value="Edit" />
|
|
<input class="btn delete_root_dir" type="button" class="delete_root_dir" id="delete_root_dir_$cur_index" value="Delete" />
|
|
$cur_dir => <span id="display_new_root_dir_$cur_index">$cur_dir</span>
|
|
</div>
|
|
<input type="hidden" name="orig_root_dir_$cur_index" value="$cur_dir" />
|
|
<input type="text" style="display: none" name="new_root_dir_$cur_index" id="new_root_dir_$cur_index" class="new_root_dir" value="$cur_dir" />
|
|
#end for
|
|
|
|
</div>
|
|
|
|
<div class="optionWrapper alt">
|
|
<span class="selectTitle">Quality</span>
|
|
<div class="selectChoices">
|
|
<select id="qualityPreset" name="quality_preset">
|
|
<option value="keep">< keep ></option>
|
|
#set $selected = None
|
|
<option value="0" #if $quality_value != None and $quality_value not in $common.qualityPresets then "selected=\"selected\"" else ""#>Custom</option>
|
|
#for $curPreset in sorted($common.qualityPresets):
|
|
<option value="$curPreset" #if $quality_value == $curPreset then "selected=\"selected\"" else ""#>$common.qualityPresetStrings[$curPreset]</option>
|
|
#end for
|
|
</select>
|
|
</div><br />
|
|
|
|
<div id="customQuality">
|
|
<div style="width: 50%; text-align: center;" class="float-left">
|
|
<h3>Inital</h3>
|
|
#set $anyQualityList = filter(lambda x: x > $common.Quality.NONE, $common.Quality.qualityStrings)
|
|
<select id="anyQualities" name="anyQualities" multiple="multiple" size="len($anyQualityList)">
|
|
#for $curQuality in sorted($anyQualityList):
|
|
<option value="$curQuality" #if $curQuality in $anyQualities then "selected=\"selected\"" else ""#>$common.Quality.qualityStrings[$curQuality]</option>
|
|
#end for
|
|
</select>
|
|
</div>
|
|
<div style="width: 50%; text-align: center;" class="float-left">
|
|
<h3>Archive</h3>
|
|
#set $bestQualityList = filter(lambda x: x > $common.Quality.SDTV, $common.Quality.qualityStrings)
|
|
<select id="bestQualities" name="bestQualities" multiple="multiple" size="len($bestQualityList)">
|
|
#for $curQuality in sorted($bestQualityList):
|
|
<option value="$curQuality" #if $curQuality in $bestQualities then "selected=\"selected\"" else ""#>$common.Quality.qualityStrings[$curQuality]</option>
|
|
#end for
|
|
</select>
|
|
</div>
|
|
<br />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="optionWrapper clearfix">
|
|
<span class="selectTitle">Flatten Folders <span class="separator">*</span></span>
|
|
<div class="selectChoices">
|
|
<select id="edit_flatten_folders" name="flatten_folders">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $flatten_folders_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $flatten_folders_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="optionWrapper alt">
|
|
<span class="selectTitle">Paused</span>
|
|
<div class="selectChoices">
|
|
<select id="edit_paused" name="paused">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $paused_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $paused_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div><br />
|
|
</div>
|
|
|
|
<div class="optionWrapper">
|
|
<span class="selectTitle">Scene Numbering</span>
|
|
<div class="selectChoices">
|
|
<select id="edit_scene" name="scene">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $scene_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $scene_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div><br />
|
|
</div>
|
|
|
|
<div class="optionWrapper">
|
|
<span class="selectTitle">Anime</span>
|
|
<div class="selectChoices">
|
|
<select id="edit_anime" name="anime">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $anime_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $anime_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div><br />
|
|
</div>
|
|
|
|
<div class="optionWrapper">
|
|
<span class="selectTitle">Sports</span>
|
|
<div class="selectChoices">
|
|
<select id="edit_sports" name="sports">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $sports_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $sports_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div><br />
|
|
</div>
|
|
|
|
<div class="optionWrapper">
|
|
<span class="selectTitle">Air-By-Date</span>
|
|
<div class="selectChoices">
|
|
<select id="edit_air_by_date" name="air_by_date">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $air_by_date_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $air_by_date_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div><br />
|
|
</div>
|
|
|
|
<div class="optionWrapper">
|
|
<span class="selectTitle">Subtitles<span class="separator"></span></span>
|
|
<div class="selectChoices">
|
|
<select id="edit_subtitles" name="subtitles">
|
|
<option value="keep">< keep ></option>
|
|
<option value="enable" #if $subtitles_value then "selected=\"selected\"" else ""#>enable</option>
|
|
<option value="disable" #if $subtitles_value == False then "selected=\"selected\"" else ""#>disable</option>
|
|
</select>
|
|
</div><br />
|
|
</div>
|
|
|
|
<div class="optionWrapper">
|
|
<br /><span class="separator" style="font-size: 1.2em; font-weight: 700;">*</span>
|
|
Changing these settings will cause the selected shows to be refreshed.
|
|
</div>
|
|
|
|
<div class="optionWrapper" style="text-align: center;">
|
|
<input type="submit" value="Submit" class="btn btn-primary" /><br />
|
|
</div>
|
|
|
|
</form>
|
|
<br />
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
<!--
|
|
jQuery('#location').fileBrowser({ title: 'Select Show Location' });
|
|
//-->
|
|
</script>
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|