#import sickbeard #import datetime #from sickbeard.common import * #from sickbeard import db, sbdatetime, network_timezones #set global $title="Home" #set global $header="Show List" #set global $sbPath = ".." #set global $topmenu="home"# #import os.path #include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl") #set $myDB = $db.DBConnection() #set $today = str($datetime.date.today().toordinal()) #set $downloadedEps = $myDB.select("SELECT showid, COUNT(*) FROM tv_episodes WHERE (status IN ("+",".join([str(x) for x in $Quality.DOWNLOADED + [$ARCHIVED]])+") OR (status IN ("+",".join([str(x) for x in $Quality.SNATCHED + $Quality.SNATCHED_PROPER])+") AND location != '')) AND season != 0 and episode != 0 AND airdate <= "+$today+" GROUP BY showid") #set $allEps = $myDB.select("SELECT showid, COUNT(*) FROM tv_episodes WHERE season != 0 and episode != 0 AND (airdate != 1 OR status IN ("+",".join([str(x) for x in ($Quality.DOWNLOADED + $Quality.SNATCHED + $Quality.SNATCHED_PROPER) + [$ARCHIVED]])+")) AND airdate <= "+$today+" AND status != "+str($IGNORED)+" GROUP BY showid") #set $layout = $sickbeard.HOME_LAYOUT #if $varExists('header')
Next Ep | #if $layout=="poster" then "Poster | " else " "#$curListType | Network | Quality | Downloads | Active | Status | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
  Add Show | |||||||||||
(loading) | #if $curLoadingShow.show == None: Loading... ($curLoadingShow.show_name) #else: $curLoadingShow.show.name #end if | ||||||||||
$sbdatetime.sbdatetime.sbfdate($ldatetime) $time.mktime($ldatetime.timetuple()) |
#else:
#end if #if $layout == 'poster': | $curShow.name | #else if $layout == 'banner':#else if $layout == 'simple': | $curShow.name | #end if#if $layout != 'simple': #if $curShow.network: #else: #end if #else: $curShow.network #end if | #if $curShow.quality in $qualityPresets:$qualityPresetStrings[$curShow.quality] | #else:Custom | #end if$curShow.status |