mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-13 22:53:36 +00:00
Merge branch 'origin/dev'
This commit is contained in:
commit
29b1019b94
1 changed files with 52 additions and 37 deletions
|
@ -121,13 +121,16 @@
|
||||||
|
|
||||||
#for $cur_result in $sql_results:
|
#for $cur_result in $sql_results:
|
||||||
#set $cur_indexer = int($cur_result["indexer"])
|
#set $cur_indexer = int($cur_result["indexer"])
|
||||||
|
#set $runtime = $cur_result["runtime"]
|
||||||
|
|
||||||
#if int($cur_result["paused"]) and not $sickbeard.COMING_EPS_DISPLAY_PAUSED:
|
#if int($cur_result["paused"]) and not $sickbeard.COMING_EPS_DISPLAY_PAUSED:
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
||||||
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$cur_result["runtime"])
|
|
||||||
|
#if $runtime:
|
||||||
|
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$runtime)
|
||||||
#if $cur_ep_enddate < $today:
|
#if $cur_ep_enddate < $today:
|
||||||
#set $show_div = "listing_overdue"
|
#set $show_div = "listing_overdue"
|
||||||
#elif $cur_ep_airdate >= $next_week.date():
|
#elif $cur_ep_airdate >= $next_week.date():
|
||||||
|
@ -139,6 +142,7 @@
|
||||||
#set $show_div = "listing_default"
|
#set $show_div = "listing_default"
|
||||||
#end if
|
#end if
|
||||||
#end if
|
#end if
|
||||||
|
#end if
|
||||||
|
|
||||||
<!-- start $cur_result["show_name"] //-->
|
<!-- start $cur_result["show_name"] //-->
|
||||||
<tr class="$show_div">
|
<tr class="$show_div">
|
||||||
|
@ -220,40 +224,48 @@
|
||||||
#continue
|
#continue
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
|
#set $runtime = $cur_result["runtime"]
|
||||||
|
|
||||||
#if $sort == "network":
|
#if $sort == "network":
|
||||||
#if $cur_result["network"] and $cur_segment != $cur_result["network"]:
|
#if $cur_result["network"] and $cur_segment != $cur_result["network"]:
|
||||||
<h1 class="network">$cur_result["network"]</h1>
|
<h1 class="network">$cur_result["network"]</h1>
|
||||||
#set $cur_segment = $cur_result["network"]
|
#set $cur_segment = $cur_result["network"]
|
||||||
#end if
|
#end if
|
||||||
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
||||||
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$cur_result["runtime"])
|
|
||||||
#if $cur_ep_enddate < $today:
|
#if $runtime:
|
||||||
#set $show_div = "ep_listing listing_overdue"
|
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$runtime)
|
||||||
#elif $cur_ep_airdate >= $next_week.date():
|
#if $cur_ep_enddate < $today:
|
||||||
#set $show_div = "ep_listing listing_toofar"
|
#set $show_div = "ep_listing listing_overdue"
|
||||||
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
#elif $cur_ep_airdate >= $next_week.date():
|
||||||
#if $cur_ep_airdate == $today.date():
|
#set $show_div = "ep_listing listing_toofar"
|
||||||
#set $show_div = "ep_listing listing_current"
|
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
||||||
#else:
|
#if $cur_ep_airdate == $today.date():
|
||||||
#set $show_div = "ep_listing listing_default"
|
#set $show_div = "ep_listing listing_current"
|
||||||
|
#else:
|
||||||
|
#set $show_div = "ep_listing listing_default"
|
||||||
|
#end if
|
||||||
#end if
|
#end if
|
||||||
#end if
|
#end if
|
||||||
#elif $sort == "date":
|
#elif $sort == "date":
|
||||||
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
||||||
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$cur_result["runtime"])
|
|
||||||
#if $cur_segment != $cur_ep_airdate:
|
#if $cur_segment != $cur_ep_airdate:
|
||||||
#if $cur_ep_enddate < $today and $cur_ep_airdate != $today.date() and not $missed_header:
|
#if $runtime:
|
||||||
<br /><h1 class="day">Missed</h1>
|
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$runtime)
|
||||||
#set $missed_header = True
|
#if $cur_ep_enddate < $today and $cur_ep_airdate != $today.date() and not $missed_header:
|
||||||
#elif $cur_ep_airdate >= $next_week.date() and not $too_late_header:
|
<br /><h1 class="day">Missed</h1>
|
||||||
<br /><h1 class="day">Later</h1>
|
#set $missed_header = True
|
||||||
#set $too_late_header = True
|
#elif $cur_ep_airdate >= $next_week.date() and not $too_late_header:
|
||||||
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
<br /><h1 class="day">Later</h1>
|
||||||
#if $cur_ep_airdate == $today.date():
|
#set $too_late_header = True
|
||||||
<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>
|
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
||||||
#set $today_header = True
|
#if $cur_ep_airdate == $today.date():
|
||||||
#else:
|
<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()</h1>
|
#set $today_header = True
|
||||||
|
#else:
|
||||||
|
<br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate.toordinal).strftime("%A").decode($sickbeard.SYS_ENCODING).capitalize()</h1>
|
||||||
|
#end if
|
||||||
#end if
|
#end if
|
||||||
#end if
|
#end if
|
||||||
#set $cur_segment = $cur_ep_airdate
|
#set $cur_segment = $cur_ep_airdate
|
||||||
|
@ -268,24 +280,27 @@
|
||||||
#set $show_div = "ep_listing listing_toofar"
|
#set $show_div = "ep_listing listing_toofar"
|
||||||
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
||||||
#if $cur_ep_airdate == $today.date():
|
#if $cur_ep_airdate == $today.date():
|
||||||
|
#set $show_div = "ep_listing listing_current"
|
||||||
|
#else:
|
||||||
|
#set $show_div = "ep_listing listing_default"
|
||||||
|
#end if
|
||||||
|
#end if
|
||||||
|
#elif $sort == "show":
|
||||||
|
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
||||||
|
|
||||||
|
#if $runtime:
|
||||||
|
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$runtime)
|
||||||
|
#if $cur_ep_enddate < $today:
|
||||||
|
#set $show_div = "ep_listing listing_overdue"
|
||||||
|
#elif $cur_ep_airdate >= $next_week.date():
|
||||||
|
#set $show_div = "ep_listing listing_toofar"
|
||||||
|
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
||||||
|
#if $cur_ep_airdate == $today.date():
|
||||||
#set $show_div = "ep_listing listing_current"
|
#set $show_div = "ep_listing listing_current"
|
||||||
#else:
|
#else:
|
||||||
#set $show_div = "ep_listing listing_default"
|
#set $show_div = "ep_listing listing_default"
|
||||||
#end if
|
#end if
|
||||||
#end if
|
#end if
|
||||||
#elif $sort == "show":
|
|
||||||
#set $cur_ep_airdate = $cur_result["localtime"].date()
|
|
||||||
#set $cur_ep_enddate = $cur_result["localtime"] + datetime.timedelta(minutes=$cur_result["runtime"])
|
|
||||||
#if $cur_ep_enddate < $today:
|
|
||||||
#set $show_div = "ep_listing listing_overdue"
|
|
||||||
#elif $cur_ep_airdate >= $next_week.date():
|
|
||||||
#set $show_div = "ep_listing listing_toofar"
|
|
||||||
#elif $cur_ep_enddate >= $today and $cur_ep_airdate < $next_week.date():
|
|
||||||
#if $cur_ep_airdate == $today.date():
|
|
||||||
#set $show_div = "ep_listing listing_current"
|
|
||||||
#else:
|
|
||||||
#set $show_div = "ep_listing listing_default"
|
|
||||||
#end if
|
|
||||||
#end if
|
#end if
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue