From bb61f01e7f5b3a79036a5083f0137ea23416d69c Mon Sep 17 00:00:00 2001 From: Dave Date: Sat, 16 Jun 2012 09:01:47 +0100 Subject: Allow for start-padding when checking timers for changed events. --- vdrtva.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vdrtva.c b/vdrtva.c index d256539..d118bbe 100644 --- a/vdrtva.c +++ b/vdrtva.c @@ -631,7 +631,7 @@ bool cPluginvdrTva::AddNewEventsToSeries() } // Check timers to see if the event they were set to record is still in the EPG. -// This won't work if the start time is padded. +// This won't work if VPS is not used and the start time is padded by a custom amount. void cPluginvdrTva::CheckChangedEvents() { @@ -642,7 +642,11 @@ void cPluginvdrTva::CheckChangedEvents() const cChannel *channel = ti->Channel(); const cSchedule *schedule = Schedules->GetSchedule(channel); if (schedule && ti->HasFlags(tfActive)) { - const cEvent *event = schedule->GetEvent(0, ti->StartTime()); + time_t start_time = ti->StartTime(); + if (!ti->HasFlags(tfVps)) { + start_time += Setup.MarginStart * 60; + } + const cEvent *event = schedule->GetEvent(0, start_time); const char *file = strrchr(ti->File(), '~'); if (!file) file = ti->File(); else file++; -- cgit v1.2.3