summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 21:02:54 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 21:02:54 +0000
commit4f7cd6ef7a1a9d3659ff7386425b705767351b53 (patch)
tree86dd948e46c37f1447c3ab2e2882b815466f83bc /pages
parent0e009653ef3bb21ad5d9a9750f3b83d20df50267 (diff)
downloadvdr-plugin-live-4f7cd6ef7a1a9d3659ff7386425b705767351b53.tar.gz
vdr-plugin-live-4f7cd6ef7a1a9d3659ff7386425b705767351b53.tar.bz2
- implemented skipping past event like within vdr
Diffstat (limited to 'pages')
-rw-r--r--pages/schedule.ecpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/schedule.ecpp b/pages/schedule.ecpp
index b72800f..36084dc 100644
--- a/pages/schedule.ecpp
+++ b/pages/schedule.ecpp
@@ -69,9 +69,9 @@ int channel = -1;
<{
bool active_line = false;
std::string current_day = "";
- time_t now = time(0);
+ const cEvent* PresentEvent = Schedule->GetPresentEvent();
for (const cEvent *Event = Schedule->Events()->First(); Event; Event = Schedule->Events()->Next(Event)) {
- if (Event->StartTime() + Event->Duration() < now && !Event->IsRunning())
+ if (Event->EndTime() <= time(0) && Event != PresentEvent)
continue;
active_line = !active_line;