#import datetime #import re ## #import sickbeard #from sickbeard import history, providers, sbdatetime, WEB_PORT #from sickbeard.common import Quality, statusStrings, SNATCHED_ANY, SNATCHED_PROPER, DOWNLOADED, SUBTITLED, ARCHIVED, FAILED #from sickbeard.helpers import human #from sickbeard.providers import generic <% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp# ## #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 'Provider 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 | ||
---|---|---|---|---|---|---|
$sbdatetime.sbdatetime.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 0 < $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 | |
$sbdatetime.sbdatetime.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 | Episode | Label (Profile) | Quality | Size | Delete |
0 Bytes | #if $len($results) #end if | |||||
Media marked watched or unwatched will list in this space |
||||||
$sbdatetime.sbdatetime.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 | $display_name | #set $label = re.sub('\{[^}]+\}$', '', $hItem.get('label')) #set $client = '' #try #set $client = re.findall('\{([^}]+)\}$', $hItem.get('label'))[0].lower() #set $client_label = ('%s %s' % ($client, $label)).strip(' ') $label #except $label #pass #end try | $Quality.qualityStrings[$hItem.get('quality')].replace('SD DVD', 'SD DVD/BR/BD') | $human($hItem.get('file_size')) | #if $hItem.get('mru_count') #end if |