2014-03-10 01:18:05 -04:00
|
|
|
#import sickbeard
|
|
|
|
#from sickbeard.common import Quality, qualityPresets, qualityPresetStrings
|
|
|
|
|
|
|
|
<div class="field-pair">
|
2014-11-15 15:15:06 -05:00
|
|
|
<label for="qualityPreset">
|
2014-03-10 01:18:05 -04:00
|
|
|
#set $overall_quality = $Quality.combineQualities($anyQualities, $bestQualities)
|
2014-11-15 15:15:06 -05:00
|
|
|
<span class="component-title">Preferred quality of episodes to be download</span>
|
|
|
|
<span class="component-desc">
|
2014-03-10 01:18:05 -04:00
|
|
|
#set $selected = None
|
2014-10-21 15:09:01 -04:00
|
|
|
<select id="qualityPreset" class="form-control form-control-inline input-sm">
|
2014-03-10 01:18:05 -04:00
|
|
|
<option value="0">Custom</option>
|
|
|
|
#for $curPreset in sorted($qualityPresets):
|
|
|
|
<option value="$curPreset" #if $curPreset == $overall_quality then "selected=\"selected\"" else ""# #if $qualityPresetStrings[$curPreset].endswith("0p") then "style=\"padding-left: 15px;\"" else ""#>$qualityPresetStrings[$curPreset]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="customQualityWrapper">
|
|
|
|
<div id="customQuality">
|
|
|
|
<div class="component-group-desc">
|
2014-11-15 15:15:06 -05:00
|
|
|
<p>One of the <b>Initial</b> quality selections must be obtained before SickRage will attempt to search and process the <b>Archive</b> selections.</p>
|
2014-03-10 01:18:05 -04:00
|
|
|
</div>
|
|
|
|
|
2014-11-15 15:15:06 -05:00
|
|
|
<div style="padding-right: 40px; text-align: left; float: left;">
|
|
|
|
<h5>Initial</h4>
|
2014-03-10 01:18:05 -04:00
|
|
|
#set $anyQualityList = filter(lambda x: x > $Quality.NONE, $Quality.qualityStrings)
|
2014-10-21 15:09:01 -04:00
|
|
|
<select id="anyQualities" name="anyQualities" multiple="multiple" size="$len($anyQualityList)" class="form-control form-control-inline input-sm">
|
2014-03-10 01:18:05 -04:00
|
|
|
#for $curQuality in sorted($anyQualityList):
|
|
|
|
<option value="$curQuality" #if $curQuality in $anyQualities then "selected=\"selected\"" else ""#>$Quality.qualityStrings[$curQuality]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2014-11-15 15:15:06 -05:00
|
|
|
<div style="text-align: left; float: left;">
|
|
|
|
<h5>Archive</h4>
|
2014-03-10 01:18:05 -04:00
|
|
|
#set $bestQualityList = filter(lambda x: x > $Quality.SDTV and x < $Quality.UNKNOWN, $Quality.qualityStrings)
|
2014-10-21 15:09:01 -04:00
|
|
|
<select id="bestQualities" name="bestQualities" multiple="multiple" size="$len($bestQualityList)" class="form-control form-control-inline input-sm">
|
2014-03-10 01:18:05 -04:00
|
|
|
#for $curQuality in sorted($bestQualityList):
|
|
|
|
<option value="$curQuality" #if $curQuality in $bestQualities then "selected=\"selected\"" else ""#>$Quality.qualityStrings[$curQuality]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|