diff --git a/gui/slick/interfaces/default/comingEpisodes.tmpl b/gui/slick/interfaces/default/comingEpisodes.tmpl index a0df614c..7a23ea9f 100644 --- a/gui/slick/interfaces/default/comingEpisodes.tmpl +++ b/gui/slick/interfaces/default/comingEpisodes.tmpl @@ -24,11 +24,13 @@
+#if $layout != 'calendar': Key: Missed Current Future Distant +#end if Subscribe @@ -449,29 +451,43 @@ #for $day in $dates - +
- + #set $day_has_show = False #for $cur_result in $sql_results: #set $cur_indexer = int($cur_result["indexer"]) #set $runtime = $cur_result["runtime"] #set $airday = $cur_result["localtime"].date() #if $airday == $day: - + #set $day_has_show = True + #set $airtime = $sbdatetime.sbdatetime.fromtimestamp($time.mktime($cur_result["localtime"].timetuple())).sbftime().decode($sickbeard.SYS_ENCODING) + #if $sickbeard.TRIM_ZERO: + #set $airtime = re.sub(r"0(\d:\d\d)", r"\1", $airtime, 0, re.IGNORECASE | re.MULTILINE) + #end if + - + #end if - - + #end for + #if not $day_has_show: + + #end if
$day.strftime("%A").decode($sickbeard.SYS_ENCODING).capitalize()
- -
$cur_result["localtime"].strftime("%H:%M") on $cur_result["network"] - #set $episodestring = "%sx%s %s" % ($cur_result["season"], $cur_result["episode"], $cur_result["name"]) -
<%="S%02i" % int(cur_result["season"])+"E%02i" % int(cur_result["episode"]) %> - $cur_result["name"] -
+
+ +
+
+ + ${airtime} on $cur_result["network"] + + + <%= "S%02i" % int(cur_result["season"]) + "E%02i" % int(cur_result["episode"]) %> - $cur_result["name"] + +
+
No shows for this day
#end for