summaryrefslogtreecommitdiff
path: root/searchtimer_thread.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-07-09 19:50:54 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-07-09 19:50:54 +0200
commitb5cf08c390c12ecc2be232fa336311fa4c73c541 (patch)
treed577674c6e3d092ce1d717071aa1a4e2aa0f57c1 /searchtimer_thread.c
parent5a0aa41728efdce4931cce6b527040459d12518b (diff)
downloadvdr-plugin-epgsearch-b5cf08c390c12ecc2be232fa336311fa4c73c541.tar.gz
vdr-plugin-epgsearch-b5cf08c390c12ecc2be232fa336311fa4c73c541.tar.bz2
ignore manual timers in the update check that were edited by the user
Diffstat (limited to 'searchtimer_thread.c')
-rw-r--r--searchtimer_thread.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c
index 1a3fed1..2dbc7df 100644
--- a/searchtimer_thread.c
+++ b/searchtimer_thread.c
@@ -855,7 +855,13 @@ void cSearchTimerThread::CheckManualTimers()
for (cTimer *ti = Timers.First(); ti && m_Active; ti = Timers.Next(ti))
{
if (TriggeredFromSearchTimerID(ti) != -1) continue; // manual timer?
-
+
+ if (TimerWasModified(ti))
+ {
+ LogFile.Log(2,"timer for '%s' (%s, channel %s) modified by user - won't be touched", ti->File(), DAYDATETIME(ti->StartTime()), CHANNELNAME(ti->Channel()));
+ continue; // don't update timers modified by user
+ }
+
char* szbstart = GetAuxValue(ti, "bstart");
int bstart = szbstart? atoi(szbstart) : 0;
free(szbstart);