#import sickbeard #from sickbeard.helpers import anon_url <% def mainvar(varname, default=False): return getattr(sickbeard, varname, default) %> <% def mainstr(varname, default=''): return getattr(sickbeard, varname, default) %> ## #set $panel_title = {'viewart0': 'Poster left', 'viewart1': 'Poster right', 'viewart2': 'No poster', 'viewart3': 'Open gear', 'viewart4': 'Backart only', 'translucent_on': 'Translucency on', 'translucent_off': 'Translucency off', 'rateart0': 'Random (default)', 'rateart1': 'Group random', 'rateart2': 'Always display', 'rateart3': 'Avoid image', 'backart_on': 'Backart on', 'backart_off': 'Backart off', 'viewmode0': 'Regular view', 'viewmode1': 'Proview I', 'viewmode2': 'Proview II', 'viewmode3': 'Set/Save art random/avoids'} #set $init_title_translucent = $panel_title['translucent_' + ('off', 'on')[$mainvar('DISPLAY_SHOW_BACKGROUND_TRANSLUCENT')]] #set $init_title_backart = $panel_title['backart_' + ('off', 'on')[$mainvar('DISPLAY_SHOW_BACKGROUND') and $has_art]] #set $init_title_view = $panel_title['viewmode%s' % ((1, 0)[not $mainvar('DISPLAY_SHOW_VIEWMODE')], $mainvar('DISPLAY_SHOW_VIEWMODE'))[$mainvar('DISPLAY_SHOW_BACKGROUND') and $has_art]] ##
#if $has_art #else #try #set $link = $anon_url('https://fanart.tv/?s=', $clean_show_name, '§=1') #except #end try #end if