#import sickbeard #from sickbeard import common #from sickbeard import exceptions <% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickbeard, 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 = $common.SD #end if #set $anyQualities, $bestQualities = $common.Quality.splitQuality($initial_quality)