#import sickgear #from sickgear.common import Quality, qualityPresets, qualityPresetStrings ## #set $html_checked = ' checked="checked"' #set $html_selected = ' selected="selected"'
Wanted quality
Briefly use 'Unknown' to skip release quality checks but expect spam if left on
select one or more qualities; the best one found when searching will be used
#set $any_quality_list = 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) $Quality.get_quality_ui($cur_quality) #if $Quality.UHD4KWEB == $cur_quality $Quality.get_quality_ui($Quality.UNKNOWN) #end if #if $cur_quality in [$Quality.SDDVD, $Quality.FULLHDTV, $Quality.FULLHDBLURAY, $Quality.UHD4KWEB]All selected qualities found will upgrade until the best
With no upgrades selected, search is complete when a wanted quality is found
Upgrades will search after a wanted quality release is snatched or downloaded
optional, upgrade existing media to any selected quality
#set $best_quality_list = list(filter(lambda x: x > $Quality.SDTV and x < $Quality.UNKNOWN, $Quality.qualityStrings)) #for $cur_quality in sorted($best_quality_list): $Quality.get_quality_ui($cur_quality) #if $cur_quality in [$Quality.SDDVD, $Quality.FULLHDTV, $Quality.FULLHDBLURAY]