#import sickgear #from sickgear.common import Quality, qualityPresets, qualityPresetStrings, SD #from sickgear.indexers.indexer_config import TVINFO_TVMAZE, TVINFO_TVDB #from lib import exceptions_helper as exceptions <% def sg_var(varname, default=False): return getattr(sickgear, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickgear, varname, default) %>#slurp# ## #set global $title = 'Mass Edit' #set global $header = 'Mass Edit' #set global $sbPath = '..' #set global $topmenu = 'manage' ## #import os.path #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl') #if None is not $quality_value: #set $initial_quality = int($quality_value) #else: #set $initial_quality = $SD #end if #set $anyQualities, $bestQualities = $Quality.split_quality($sg_var('QUALITY_DEFAULT', $initial_quality))