--- channel.php 2008/10/16 05:36:27 1.1 +++ channel.php 2010/02/27 03:13:37 @@ -59,9 +59,11 @@ - +programs as $show) { // Print some additional information for movies @@ -84,19 +86,41 @@ $additional = ' (' . $additional . ')'; } - // Print the content - ?> - starttime) ?> - endtime) ?> - starttime); + $endtime = strftime($_SESSION['time_format'], $lastend); + /* Do we have a gap? */ + $gap = $show->starttime - $lastend; + if (($gap > 0) && ($lastend != 0)) + { + $gapmins = $gap / 60; + print <<< EOS + Missing programme data from $endtime to $starttime ($gapmins minutes) +EOS; + } + /* Print the content */ + $endtime = strftime($_SESSION['time_format'], $show->endtime); + $root = root; + $length = nice_length ($show->length); + print <<< EOS + + + $starttime – $endtime + + +EOS; if ($show->hdtv) echo 'HD'; - echo '' - .$show->title.$additional.''; - ?> - subtitle ?> - description ?> - length) ?> -chanid/$show->starttime">$show->title$additional + + $show->subtitle + $show->description + $length + + +EOS; + $lastend = $show->endtime; $row++; } ?>