#import sickbeard #import datetime #from sickbeard.common import * #from sickbeard import 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") #if $varExists('header')

$showlists[0][1]

#else

$title

#end if #set $tab = 1 #if $layout != 'poster':
 
Layout: #else
Layout: #end if #if $layout == 'poster': Sort By: Sort Order:   #end if
#for $curShowlist in $showlists: #set $curListID = $curShowlist[0] #set $curListName = $curShowlist[1] #set $myShowList = $list($curShowlist[2]) #if $curShowlist != $showlists[0]:

$curListName

#end if #if $layout == 'poster':
#for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList: #if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList: #continue #end if #if $curLoadingShow.show == None:
Loading... ($curLoadingShow.show_name)
#end if #end for $myShowList.sort(lambda x, y: cmp(x.name, y.name)) #for $curShow in $myShowList: #set $cur_airs_next = '' #set $cur_snatched = 0 #set $cur_downloaded = 0 #set $cur_total = 0 #set $download_stat_tip = '' #set $display_status = $curShow.status #if None is not $display_status #if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status) #set $display_status = 'Continuing' #else if re.search(r'(?i)(?:nded)', $curShow.status) #set $display_status = 'Ended' #end if #end if #if $curShow.indexerid in $show_stat: #set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next'] #set $cur_snatched = $show_stat[$curShow.indexerid]['ep_snatched'] #if not $cur_snatched: #set $cur_snatched = 0 #end if #set $cur_downloaded = $show_stat[$curShow.indexerid]['ep_downloaded'] #if not $cur_downloaded: #set $cur_downloaded = 0 #end if #set $cur_total = $show_stat[$curShow.indexerid]['ep_total'] #if not $cur_total: #set $cur_total = 0 #end if #end if #if $cur_total != 0: #set $download_stat = str($cur_downloaded) #set $download_stat_tip = "Downloaded: " + str($cur_downloaded) #if $cur_snatched > 0: #set $download_stat = download_stat #set $download_stat_tip = download_stat_tip + " " + "Snatched: " + str($cur_snatched) #end if #set $download_stat = download_stat + " / " + str($cur_total) #set $download_stat_tip = download_stat_tip + " " + "Total: " + str($cur_total) #else #set $download_stat = '?' #set $download_stat_tip = "no data" #end if #set $nom = $cur_downloaded #set $den = $cur_total #if $den == 0: #set $den = 1 #end if #set $progressbar_percent = $nom * 100 / $den #set $data_date = '600000000000' #if $cur_airs_next: #set $data_date = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next, $curShow.airs, $curShow.network)).strftime('%Y%m%d%H%M') #else if None is not $display_status #if 'nded' not in $display_status and 1 == int($curShow.paused) #set $data_date = '500000000500' #else if 'ontinu' in $display_status #set $data_date = '500000000000' #else if 'nded' in $display_status #set $data_date = '500000000100' #end if #end if
$curShow.name
#if $cur_airs_next #set $ldatetime = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)) $sbdatetime.sbdatetime.sbfdate($ldatetime) #else #set $output_html = '?' #if None is not $display_status #if 'nded' not in $display_status and 1 == int($curShow.paused) #set $output_html = 'Paused' #else if $display_status #set $output_html = $display_status #end if #end if $output_html #end if
$download_stat #if 'simple' != $layout: #set $img_text = ($curShow.network, 'No Network')[None is $curShow.network] #echo '%s #else: $curShow.network #end if #if $curShow.quality in $qualityPresets: $qualityPresetStrings[$curShow.quality] #else: Custom #end if
#end for
#else #for $curLoadingShow in $sickbeard.showQueueScheduler.action.loadingShowList: #if $curLoadingShow.show != None and $curLoadingShow.show in $sickbeard.showList: #continue #end if #end for $myShowList.sort(lambda x, y: cmp(x.name, y.name)) #for $curShow in $myShowList: #set $cur_airs_next = '' #set $cur_snatched = 0 #set $cur_downloaded = 0 #set $cur_total = 0 #set $download_stat_tip = '' #if $curShow.indexerid in $show_stat: #set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next'] #set $cur_snatched = $show_stat[$curShow.indexerid]['ep_snatched'] #if not $cur_snatched: #set $cur_snatched = 0 #end if #set $cur_downloaded = $show_stat[$curShow.indexerid]['ep_downloaded'] #if not $cur_downloaded: #set $cur_downloaded = 0 #end if #set $cur_total = $show_stat[$curShow.indexerid]['ep_total'] #if not $cur_total: #set $cur_total = 0 #end if #end if #if $cur_total != 0: #set $download_stat = str($cur_downloaded) #set $download_stat_tip = "Downloaded: " + str($cur_downloaded) #if $cur_snatched > 0: #set $download_stat = download_stat + "+" + str($cur_snatched) #set $download_stat_tip = download_stat_tip + " " + "Snatched: " + str($cur_snatched) #end if #set $download_stat = download_stat + " / " + str($cur_total) #set $download_stat_tip = download_stat_tip + " " + "Total: " + str($cur_total) #else #set $download_stat = '?' #set $download_stat_tip = "no data" #end if #set $nom = $cur_downloaded #set $den = $cur_total #if $den == 0: #set $den = 1 #end if #set $progressbar_percent = $nom * 100 / $den #if $cur_airs_next #set $ldatetime = $sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)) #else: #end if #if $layout == 'small': #else if $layout == 'banner': #else if $layout == 'simple': #end if #if 'simple' != $layout: #set $img_text = ($curShow.network, 'No Network')[None is $curShow.network] #else: #end if #if $curShow.quality in $qualityPresets: #else: #end if #end for
Next Ep Show 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)
$ldatetime.strftime('%Y%m%d%H%M')
$curShow.name $curShow.name $curShow.network #echo '%s $curShow.network $qualityPresetStrings[$curShow.quality]Custom$progressbar_percent
\"Y\"" #set $display_status = $curShow.status #if None is not $display_status #if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status) #set $display_status = 'Continuing' #else if re.search(r'(?i)(?:nded)', $curShow.status) #set $display_status = 'Ended' #end if #end if $display_status
#end if #end for #include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")