2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
#from sickbeard.common import Quality, qualityPresets, qualityPresetStrings
|
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
#set $html_selected = ' selected="selected"'
|
2014-03-10 05:18:05 +00:00
|
|
|
<div class="field-pair">
|
2014-11-20 22:25:33 +00:00
|
|
|
<label for="qualityPreset" class="clearfix">
|
2014-03-10 05:18:05 +00:00
|
|
|
#set $overall_quality = $Quality.combineQualities($anyQualities, $bestQualities)
|
2014-11-20 22:25:33 +00:00
|
|
|
<span class="component-title input">Quality</span>
|
|
|
|
<span class="component-desc">
|
2014-03-10 05:18:05 +00:00
|
|
|
#set $selected = None
|
2015-10-13 20:29:14 +00:00
|
|
|
<select id="qualityPreset" name="quality_preset" class="form-control form-control-inline input-sm">
|
2014-11-20 22:25:33 +00:00
|
|
|
<option value="0">Custom</option>
|
2016-02-19 17:38:38 +00:00
|
|
|
#for $curPreset in $qualityPresets:
|
2016-03-20 15:59:00 +00:00
|
|
|
<option value="$curPreset"#echo ('', $html_selected)[$curPreset == $overall_quality]##echo ('', ' style="padding-left:15px"')[$qualityPresetStrings[$curPreset].endswith('0p') and 'UHD' not in $qualityPresetStrings[$curPreset]]#>$qualityPresetStrings[$curPreset]</option>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end for
|
2014-11-20 22:25:33 +00:00
|
|
|
</select>
|
|
|
|
<span>preferred episode quality to download</span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2014-03-10 05:18:05 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="customQualityWrapper">
|
2016-02-19 17:38:38 +00:00
|
|
|
<div id="customQuality" class="show-if-quality-custom" style="display:none">
|
2016-11-14 21:33:15 +00:00
|
|
|
<div class="component-group-desc tip-text">
|
2015-05-13 19:43:03 +00:00
|
|
|
<p>An <em>Initial</em> quality episode must be found before an <em>Upgrade to</em> selection is considered.</p>
|
2016-02-19 17:38:38 +00:00
|
|
|
<p>Upgrades continue until the highest selected of <em>Upgrade to</em> is matched.</p>
|
2014-11-20 22:25:33 +00:00
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-11-20 22:25:33 +00:00
|
|
|
<span class="component-desc">
|
2016-11-14 21:33:15 +00:00
|
|
|
<div style="float:left;padding-right:28px">
|
2015-02-16 03:17:56 +00:00
|
|
|
<h4 class="jumbo">Initial</h4>
|
2014-11-20 22:25:33 +00:00
|
|
|
#set $anyQualityList = filter(lambda x: x > $Quality.NONE, $Quality.qualityStrings)
|
|
|
|
<select id="anyQualities" name="anyQualities" multiple="multiple" size="$len($anyQualityList)" class="form-control form-control-inline input-sm">
|
2016-11-14 21:33:15 +00:00
|
|
|
#set $has_unknown = False
|
2014-11-20 22:25:33 +00:00
|
|
|
#for $curQuality in sorted($anyQualityList):
|
2016-11-14 21:33:15 +00:00
|
|
|
#set $has_unknown |= ($Quality.UNKNOWN == $curQuality and $curQuality in $anyQualities)
|
2016-02-19 17:38:38 +00:00
|
|
|
<option value="$curQuality"#echo ('', $html_selected)[$curQuality in $anyQualities]#>$Quality.qualityStrings[$curQuality]</option>
|
2014-11-20 22:25:33 +00:00
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-11-14 21:33:15 +00:00
|
|
|
<div style="float:left;padding-right:20px">
|
2015-05-13 19:43:03 +00:00
|
|
|
<h4 class="jumbo">Upgrade to</h4>
|
2014-11-20 22:25:33 +00:00
|
|
|
#set $bestQualityList = filter(lambda x: x > $Quality.SDTV and x < $Quality.UNKNOWN, $Quality.qualityStrings)
|
|
|
|
<select id="bestQualities" name="bestQualities" multiple="multiple" size="$len($bestQualityList)" class="form-control form-control-inline input-sm">
|
|
|
|
#for $curQuality in sorted($bestQualityList):
|
2016-02-19 17:38:38 +00:00
|
|
|
<option value="$curQuality"#echo ('', $html_selected)[$curQuality in $bestQualities]#>$Quality.qualityStrings[$curQuality]</option>
|
2014-11-20 22:25:33 +00:00
|
|
|
#end for
|
2016-11-14 21:33:15 +00:00
|
|
|
</select><br />
|
|
|
|
<span>Ctrl + Click = toggle a quality</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="line-height:normal;padding-top:50px" id="quality-notes" class="tip-text">
|
|
|
|
<p id="unknown"#if not $has_unknown# style="display:none"#end if#>
|
|
|
|
<em class="highlight-text">Note:</em> Temporarily use 'Unknown' for releases with no recognised quality.
|
|
|
|
Full-time use risks snatching bad releases and wastes API hits.
|
|
|
|
</p>
|
2014-11-20 22:25:33 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
</div>
|