#import sickbeard #import os.path #import datetime #import re #from sickbeard import history #from sickbeard import providers #from sickbeard import sbdatetime #from sickbeard.providers import generic #from sickbeard.common import * #set global $title="History" #set global $header="History" #set global $sbPath=".." #set global $topmenu="history"# #set $layout = $sickbeard.HISTORY_LAYOUT #include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl") #if $varExists('header')
Time | Episode | Action | Provider | Quality |
---|---|---|---|---|
$sbdatetime.sbdatetime.sbfdatetime($curdatetime, show_seconds=True) $time.mktime($curdatetime.timetuple()) |
$hItem["show_name"] - <%="S%02i" % int(hItem["season"])+"E%02i" % int(hItem["episode"]) %>#if "proper" in $hItem["resource"].lower or "repack" in $hItem["resource"].lower then ' Proper' else ""# | #if $curStatus == SUBTITLED: "> #end if $statusStrings[$curStatus] | #if $curStatus == DOWNLOADED: #if $hItem["provider"] != "-1": $hItem["provider"] #end if #else #if $hItem["provider"] > 0 #if $curStatus in [SNATCHED, FAILED]: #set $provider = $providers.getProviderClass($generic.GenericProvider.makeID($hItem["provider"])) #if $provider != None: $provider.name #else: Missing Provider #end if #else: " width="16" height="16" style="vertical-align:middle;" /> <%=hItem["provider"].capitalize()%> #end if #end if #end if | $Quality.qualityStrings[$curQuality] |
Time | Episode | Snatched | Downloaded | #if sickbeard.USE_SUBTITLESSubtitled | #end ifQuality |
---|---|---|---|---|---|
$sbdatetime.sbdatetime.sbfdatetime($curdatetime, show_seconds=True) $time.mktime($curdatetime.timetuple()) |
$hItem["show_name"] - <%="S%02i" % int(hItem["season"])+"E%02i" % int(hItem["episode"]) %>#if "proper" in $hItem["resource"].lower or "repack" in $hItem["resource"].lower then ' Proper' else ""# | "> #for $action in sorted($hItem["actions"]): #set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($action["action"])) #if $curStatus in [SNATCHED, FAILED]: #set $provider = $providers.getProviderClass($generic.GenericProvider.makeID($action["provider"])) #if $provider != None: #else: #end if #end if #end for | #for $action in sorted($hItem["actions"]): #set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($action["action"])) #if $curStatus == DOWNLOADED: #set $match = $re.search("\-(\w+)\.\w{3}\Z", $os.path.basename($action["resource"])) #if $match #if $match.group(1).upper() in ("X264", "720P"): #set $match = $re.search("(\w+)\-.*\-"+$match.group(1)+"\.\w{3}\Z", $os.path.basename($hItem["resource"]), re.IGNORECASE) #if $match $match.group(1).upper() #end if #else: $match.group(1).upper() #end if #end if #end if #end for | #if sickbeard.USE_SUBTITLES:#for $action in sorted($hItem["actions"]): #set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($action["action"])) #if $curStatus == SUBTITLED: " width="16" height="16" style="vertical-align:middle;" alt="$action["provider"]" title="<%=action["provider"].capitalize()%>: $os.path.basename($action["resource"])"/> / " style="vertical-align: middle !important;"> #end if #end for | #end if$Quality.qualityStrings[$curQuality] |