diff --git a/gui/slick/interfaces/default/home.tmpl b/gui/slick/interfaces/default/home.tmpl index f193ce7e..d20feb16 100644 --- a/gui/slick/interfaces/default/home.tmpl +++ b/gui/slick/interfaces/default/home.tmpl @@ -280,6 +280,11 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name)) #set $cur_downloaded = 0 #set $cur_total = 0 #set $download_stat_tip = '' + #if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status): + #set $display_status = 'Continuing' + #else: + #set $display_status = $curShow.status + #end if #if $curShow.indexerid in $show_stat: #set $cur_airs_next = $show_stat[$curShow.indexerid]['ep_airs_next'] @@ -322,7 +327,18 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name)) #set $progressbar_percent = $nom * 100 / $den -
+#if $cur_airs_next: + #set $data_date = $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple()) +#else if 'nded' not in $display_status and 1 == int($curShow.paused): + #set $data_date = '5000000500.0' +#else if 'ontinu' in $display_status: + #set $data_date = '5000000000.0' +#else if 'nded' in $display_status: + #set $data_date = '5000000100.0' +#else: + #set $data_date = '6000000000.0' +#end if +
@@ -354,18 +370,20 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
$curShow.name
- - #if $cur_airs_next - #set $ldatetime = $network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network) -
$sbdatetime.sbdatetime.sbfdate($ldatetime)
- #else if $curShow.status != "Ended" and int($curShow.paused) == 1: -
Paused
- #else if $curShow.status: -
$curShow.status
- #else -
?
- #end if - + +
+#if $cur_airs_next +#set $ldatetime = $network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network) + $sbdatetime.sbdatetime.sbfdate($ldatetime) +#else if 'nded' not in $display_status and 1 == int($curShow.paused): + Paused +#else if $display_status: + $display_status +#else + ? +#end if +
+
@@ -581,7 +599,11 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name)) +#if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status): + Continuing +#else: $curShow.status +#end if