#import sickgear #if $sickgear.ROOT_DIRS: #set $backend_pieces = $sickgear.ROOT_DIRS.split('|') #set $backend_default = 'rd-' + $backend_pieces[0] #set $backend_dirs = $backend_pieces[1:] #else: #set $backend_default = '' #set $backend_dirs = [] #end if