Fix for Error cannot find 'cur_ep_enddate'

This commit is contained in:
echel0n 2014-08-21 23:26:49 -07:00
parent 7cbe8fca44
commit a3449db3d3

View file

@ -286,15 +286,17 @@
<br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate.toordinal).strftime("%A").decode($sickbeard.SYS_ENCODING).capitalize() <span style="font-size: 12px;">[today]</span></h1> <br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate.toordinal).strftime("%A").decode($sickbeard.SYS_ENCODING).capitalize() <span style="font-size: 12px;">[today]</span></h1>
#set $today_header = True #set $today_header = True
#end if #end if
#if $cur_ep_enddate < $today: #if $runtime:
#set $show_div = "ep_listing listing_overdue" #if $cur_ep_enddate < $today:
#elif $cur_ep_airdate >= $next_week.date(): #set $show_div = "ep_listing listing_overdue"
#set $show_div = "ep_listing listing_toofar" #elif $cur_ep_airdate >= $next_week.date():
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date(): #set $show_div = "ep_listing listing_toofar"
#if $cur_ep_airdate == $today.date(): #elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
#set $show_div = "ep_listing listing_current" #if $cur_ep_airdate == $today.date():
#else: #set $show_div = "ep_listing listing_current"
#set $show_div = "ep_listing listing_default" #else:
#set $show_div = "ep_listing listing_default"
#end if
#end if #end if
#end if #end if
#elif $sort == "show": #elif $sort == "show":