#import sickbeard #from sickbeard.common import * ## #set global $title = 'Bulk Change' #set global $header = 'Bulk Change' #set global $sbPath = '../..' #set global $topmenu = 'manage' ## #import os.path #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') ## #set $has_any_sports = False #set $has_any_anime = False #set $has_any_flat_folders = False #set $myShowList = $sickbeard.showList $myShowList.sort(lambda x, y: cmp(x.name, y.name)) #for $curShow in $myShowList #set $has_any_sports |= bool($curShow.sports) #set $has_any_anime |= bool($curShow.anime) #set $has_any_flat_folders |= $bool(curShow.flatten_folders) #end for #if $varExists('header')