summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-02-15 20:24:29 +0100
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-02-15 20:24:29 +0100
commitbceeecfe25a52c3c66a6fc45b255ee80e664a508 (patch)
treeb4476b33ece7b91d6d4744c038f4aa36f791bfb8
parent2e8ffba44e4611f214e87391d4000b1b90edf4c6 (diff)
downloadvdr-plugin-epgsearch-bceeecfe25a52c3c66a6fc45b255ee80e664a508.tar.gz
vdr-plugin-epgsearch-bceeecfe25a52c3c66a6fc45b255ee80e664a508.tar.bz2
handle timers as modified only if the new start/stop times have changed by more than 60
secs
-rw-r--r--HISTORY2
-rw-r--r--HISTORY.DE2
-rw-r--r--searchtimer_thread.c2
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);