#import datetime #import re ## #import sickgear #from sickgear import history, providers, WEB_PORT #from sickgear.common import Quality, statusStrings, SNATCHED_ANY, SNATCHED_PROPER, DOWNLOADED, SUBTITLED, ARCHIVED, FAILED #from sickgear.helpers import human #from sickgear.providers import generic #from sickgear.sgdatetime import SGDatetime <% def sg_var(varname, default=False): return getattr(sickgear, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickgear, varname, default) %>#slurp# ## #import humanize ## #set $layout = $sg_str('HISTORY_LAYOUT', 'detailed') #set $layout_name = 'watched' in $layout and 'Watched' or 'stats' in $layout and 'Activity Hits' or 'provider_failures'in $layout and 'Connect Failures' or 'Activity' #set sg_port = str($getVar('sbHttpPort', WEB_PORT)) #set global $title = 'History : %s' % $layout_name #set global $header = 'History : %s' % $layout_name #set global $sbPath = '..' #set global $topmenu = 'home' ## #import os.path #include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl') ## #set $checked = ' checked="checked"' #if $varExists('header')
Time | Episode | Action | Provider | Quality | ||
---|---|---|---|---|---|---|
$SGDatetime.sbfdatetime($curdatetime, show_seconds=True) |
$display_name#if $Quality.splitCompositeStatus($hItem['action'])[0] == $SNATCHED_PROPER then ' Proper' else ''# | #if $SUBTITLED == $curStatus "> #end if $statusStrings[$curStatus].replace('SD DVD', 'SD DVD/BR/BD') | #if $DOWNLOADED == $curStatus #if '-1' != $hItem['provider'] $hItem['provider'] #end if #else #if '-1' != $hItem['provider'] and len($hItem['provider']) #if $curStatus in $SNATCHED_ANY + [$FAILED] #set $provider = $providers.getProviderClass($generic.GenericProvider.make_id($hItem['provider'])) #if None is not $provider $provider.name #else Missing Provider #end if #else <%= hItem['provider'].capitalize() %> #end if #end if #end if | $curQuality$Quality.get_quality_ui($curQuality) | ||
Time | Episode | Snatched | Downloaded | #if $sg_var('USE_SUBTITLES')Subtitled | #end ifQuality | |
$SGDatetime.sbfdatetime($curdatetime, show_seconds=True) |
$display_name#if 'proper' in $hItem['resource'].lower or 'repack' in $hItem['resource'].lower then ' Proper' else ''# | #echo ''.join($prov_list)# | #echo ' '.join($down_list)# | #if $sg_var('USE_SUBTITLES')#for $action in reversed($hItem['actions']) #set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($action['action'])) #if $SUBTITLED == $curStatus / #end if #end for | #end if$Quality.get_quality_ui($curQuality) | |
Event DateEvent Age | Played | Label (Profile) | Episode | Quality | Size | Delete |
0 Bytes | #if $len($results) #end if | |||||
Media marked watched or unwatched will list in this space |
||||||
$SGDatetime.sbfdatetime($curdatetime)
${curage}d
|
#set $float_played = int($hItem.get('played'))/100.0 #set $value = ($float_played, int($float_played))[int($float_played) == $float_played] $value | #set $label = re.sub(r'\{[^}]+\}$', '', $hItem.get('label')) #set $client = '' #try #set $client = re.findall(r'\{([^}]+)\}$', $hItem.get('label'))[0].lower() #set $client_label = ('%s %s' % ($client, $label)).strip(' ') $label #except $label #pass #end try | $display_name | $Quality.qualityStrings[$hItem.get('quality')].replace('SD DVD', 'SD DVD/BR/BD') | $human($hItem.get('file_size')) | #if $hItem.get('mru_count') #end if |