From bceeecfe25a52c3c66a6fc45b255ee80e664a508 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 15 Feb 2009 20:24:29 +0100 Subject: handle timers as modified only if the new start/stop times have changed by more than 60 secs --- HISTORY | 2 +- HISTORY.DE | 2 +- searchtimer_thread.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index f8007d1..a56c6d5 100644 --- a/HISTORY +++ b/HISTORY @@ -3,7 +3,7 @@ VDR Plugin 'epgsearch' Revision History 2008-xx-xx; Version 0.9.25 new: -- Search timers now have a new action "Ask for switching". This announces the +- Search timers now have a new action "Announce and switching". This announces the event via OSD right before it starts and lets you switch to its channel with 'Ok'. Switch timers now have the same option. - new internal variables: diff --git a/HISTORY.DE b/HISTORY.DE index e964cfe..68e7e53 100644 --- a/HISTORY.DE +++ b/HISTORY.DE @@ -3,7 +3,7 @@ VDR Plugin 'epgsearch' Revision History 2008-xx-xx; Version 0.9.25 neu: -- Suchtimer haben nun eine neue Aktion "Umschalten erfragen". Damit wird eine Sendung +- Suchtimer haben nun eine neue Aktion "Ankündigen und Umschalten". Damit wird eine Sendung via OSD kurz vor ihrem Start angekündigt. Mit 'Ok' kann zum entsprechenden Kanal gewechselt werden. Umschalttimer haben die gleiche Option erhalten. - neue interne Variablen: diff --git a/searchtimer_thread.c b/searchtimer_thread.c index 6c86335..80a6885 100644 --- a/searchtimer_thread.c +++ b/searchtimer_thread.c @@ -181,7 +181,7 @@ bool cSearchTimerThread::TimerWasModified(cTimer* t) { time_t StartTime = time_t(atol(start)); time_t StopTime = time_t(atol(stop)); - if (t->StartTime() != StartTime || t->StopTime() != StopTime) + if (abs(t->StartTime() - StartTime) >= 60 || abs(t->StopTime() -StopTime) >= 60) bMod = true; } if (start) free(start); -- cgit v1.2.3