summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 20:48:10 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 20:48:10 +0000
commit0e009653ef3bb21ad5d9a9750f3b83d20df50267 (patch)
treee9157fef39f6581ba1b71bb7a4f46d2715bd24a3 /pages
parent693ece80d094d8eeaa894f2a070a06074963cff3 (diff)
downloadvdr-plugin-live-0e009653ef3bb21ad5d9a9750f3b83d20df50267.tar.gz
vdr-plugin-live-0e009653ef3bb21ad5d9a9750f3b83d20df50267.tar.bz2
- now skipping events that are in the past
Diffstat (limited to 'pages')
-rw-r--r--pages/schedule.ecpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/schedule.ecpp b/pages/schedule.ecpp
index ac548e7..b72800f 100644
--- a/pages/schedule.ecpp
+++ b/pages/schedule.ecpp
@@ -69,7 +69,11 @@ int channel = -1;
<{
bool active_line = false;
std::string current_day = "";
+ time_t now = time(0);
for (const cEvent *Event = Schedule->Events()->First(); Event; Event = Schedule->Events()->Next(Event)) {
+ if (Event->StartTime() + Event->Duration() < now && !Event->IsRunning())
+ continue;
+
active_line = !active_line;
std::string title(Event->Title() ? Event->Title() : "");
std::string short_description(Event->ShortText() ? Event->ShortText() : "");