mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-04 18:33:38 +00:00
e630cc0fdf
Change tweak text of SD DVD to include BD/BR.
95 lines
5 KiB
Cheetah
95 lines
5 KiB
Cheetah
#import sickbeard
|
|
#from sickbeard.common import Quality, qualityPresets, qualityPresetStrings
|
|
|
|
#set $html_selected = ' selected="selected"'
|
|
<div class="field-pair">
|
|
<label for="quality-preset" class="clearfix">
|
|
#set $overall_quality = $Quality.combineQualities($any_qualities, $best_qualities)
|
|
<span class="component-title input">Quality to download</span>
|
|
<span class="component-desc">
|
|
#set $selected = None
|
|
<select id="quality-preset" name="quality_preset" class="form-control form-control-inline input-sm">
|
|
<option value="0">Custom</option>
|
|
#for $cur_preset in $qualityPresets:
|
|
<option value="$cur_preset"#echo ('', $html_selected)[$cur_preset == $overall_quality]##echo ('', ' style="padding-left:15px"')[$qualityPresetStrings[$cur_preset].endswith('0p') and 'UHD' not in $qualityPresetStrings[$cur_preset]]#>$qualityPresetStrings[$cur_preset]</option>
|
|
#end for
|
|
</select>
|
|
<span>tip: select a quality then "Custom" for a default selection</span>
|
|
</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div id="custom-quality-wrapper">
|
|
<div id="custom-quality" class="show-if-quality-custom" style="display:none">
|
|
<div class="field-pair">
|
|
<div class="component-group-desc tip-text">
|
|
<p style="margin-bottom:25px">An <em class="highlight-text">initial</em> quality downloads before optional upgrades</p>
|
|
|
|
<p id="unknown-quality" style="display:none">
|
|
Temporarily use <em class="red-text">'Unknown'</em> to skip release qual checks.
|
|
Results in spam if left on
|
|
</p>
|
|
</div>
|
|
|
|
<span id="initial-quality" class="component-desc">
|
|
<p>Select one or more qualities; the best one found when searching will be snatched</p>
|
|
#set $any_quality_list = filter(lambda x: x > $Quality.NONE and x < $Quality.UNKNOWN, $Quality.qualityStrings)
|
|
#set $has_unknown = False
|
|
#for $cur_quality in sorted($any_quality_list):
|
|
##set $has_unknown |= ($Quality.UNKNOWN == $cur_quality and $cur_quality in $any_qualities)
|
|
<a href="#" data-quality="$cur_quality" class="btn btn-inverse dark-bg#echo ('', ' active')[$cur_quality in $any_qualities]#" role="button"><i class="icon-glyph searchadd"></i>$Quality.get_quality_ui($cur_quality)</a>
|
|
#if $Quality.UHD4KWEB == $cur_quality
|
|
<span class="btn-placeholder"></span>
|
|
<span class="btn-placeholder"></span>
|
|
<a href="#" data-quality="$Quality.UNKNOWN" class="btn btn-inverse dark-bg#echo ('', ' active')[$Quality.UNKNOWN in $any_qualities]#" role="button"><i class="icon-glyph searchadd"></i>$Quality.get_quality_ui($Quality.UNKNOWN)</a>
|
|
|
|
#end if
|
|
#if $cur_quality in [$Quality.SDDVD, $Quality.FULLHDTV, $Quality.FULLHDBLURAY, $Quality.UHD4KWEB]
|
|
<br>
|
|
#end if
|
|
#end for
|
|
</span>
|
|
</div>
|
|
|
|
<div class="field-pair" style="clear:both">
|
|
<div class="component-group-desc tip-text">
|
|
<p style="margin-bottom:25px">All found <em class="highlight-text">upgrade</em> qualities download until the best</p>
|
|
|
|
<p id="no-upgrade" style="display:none">No <em class="highlight-text">upgrades</em> selected, an <em class="highlight-text">initial</em> snatch will complete any search</p>
|
|
<p id="upgrade-cond" style="display:none">An <em class="highlight-text">upgrade</em> will only search after an <em class="highlight-text">initial</em> has complete</p>
|
|
</div>
|
|
<span id="upgrade-quality" class="component-desc">
|
|
<p>Optional, upgrade a completed download to any selected quality</p>
|
|
#set $best_quality_list = filter(lambda x: x > $Quality.SDTV and x < $Quality.UNKNOWN, $Quality.qualityStrings)
|
|
#for $cur_quality in sorted($best_quality_list):
|
|
<a href="#" data-quality="$cur_quality" class="btn btn-inverse dark-bg#echo ('', ' active')[$cur_quality in $best_qualities]#" role="button"><i class="icon-glyph searchadd"></i>$Quality.get_quality_ui($cur_quality)</a>
|
|
#if $cur_quality in [$Quality.SDDVD, $Quality.FULLHDTV, $Quality.FULLHDBLURAY]
|
|
<br>
|
|
#end if
|
|
#end for
|
|
</span>
|
|
</div>
|
|
|
|
<span class="component-desc bfr">
|
|
<div style="float:left;padding-right:28px">
|
|
<h4 class="jumbo">Initial</h4>
|
|
#set $any_quality_list = filter(lambda x: x > $Quality.NONE, $Quality.qualityStrings)
|
|
<select id="initial-qualities" name="anyQualities" multiple="multiple" size="$len($any_quality_list)" class="form-control form-control-inline input-sm">
|
|
#for $cur_quality in sorted($any_quality_list):
|
|
<option value="$cur_quality"#echo ('', $html_selected)[$cur_quality in $any_qualities]#>$Quality.get_quality_ui($cur_quality)</option>
|
|
#end for
|
|
</select>
|
|
</div>
|
|
|
|
<div style="float:left;padding-right:20px">
|
|
<h4 class="jumbo">Upgrade to</h4>
|
|
#set $best_quality_list = filter(lambda x: x > $Quality.SDTV and x < $Quality.UNKNOWN, $Quality.qualityStrings)
|
|
<select id="upgrade-qualities" name="bestQualities" multiple="multiple" size="$len($best_quality_list)" class="form-control form-control-inline input-sm">
|
|
#for $cur_quality in sorted($best_quality_list):
|
|
<option value="$cur_quality"#echo ('', $html_selected)[$cur_quality in $best_qualities]#>$Quality.get_quality_ui($cur_quality)</option>
|
|
#end for
|
|
</select><br />
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|