diff --git a/webif/html/epg/list.jim b/webif/html/epg/list.jim index 2ec7445..d076592 100755 --- a/webif/html/epg/list.jim +++ b/webif/html/epg/list.jim @@ -90,6 +90,12 @@ foreach record $records { set num 0 } incr num + if {$num == 1} { + if {[$record not_started]} { + puts "Unknown" + incr num + } + } if {$num < 4} { catch { puts [$record cell] } } diff --git a/webif/html/xepg/index.jim b/webif/html/xepg/index.jim index f2cb812..4f982a0 100755 --- a/webif/html/xepg/index.jim +++ b/webif/html/xepg/index.jim @@ -37,9 +37,12 @@ require epg_popup set now [clock seconds] set stt [cgi_get stt $now] -if {$stt <= $now} { - set stt $now +set dst [expr $now - $stt] +if {$dst >= 0 && $dst < 1800} { set current 1 +} elseif { $stt < [expr int ($now / 86400) * 86400] } { + set stt $now + set current 0 } else { set current 0 } @@ -197,7 +200,7 @@ puts "" ###################################################################### # Events - + puts "