diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-03-05 20:07:29 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-03-05 20:07:29 +0100 |
commit | eedb920807a5917ca63c6c8dd7c78e6e4bf2754e (patch) | |
tree | 172d4fc718ba7d1b7352e038d2d92d8c80884b01 /mail.c | |
parent | 0e3a3840e8daf19e2e8583cc2850a7b88bbf167a (diff) | |
download | vdr-plugin-epgsearch-eedb920807a5917ca63c6c8dd7c78e6e4bf2754e.tar.gz vdr-plugin-epgsearch-eedb920807a5917ca63c6c8dd7c78e6e4bf2754e.tar.bz2 |
0.9.24.beta22, %timer.modreason%, no mail when only eventid has changed
Diffstat (limited to 'mail.c')
-rw-r--r-- | mail.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -52,6 +52,12 @@ string cMailTimerNotification::Format(const string& templ) const cVarExpr varExprTimer(result); result = varExprTimer.Evaluate(pTimer); + if (timerMod == tmStartStop) + result = ReplaceAll(result, "%timer.modreason%", tr("Start/Stop time has changed")); + if (timerMod == tmFile) + result = ReplaceAll(result, "%timer.modreason%", tr("Title/episode has changed")); + else + result = ReplaceAll(result, "%timer.modreason%", ""); return result; } @@ -279,10 +285,12 @@ void cMailUpdateNotifier::AddNewTimerNotification(tEventID EventID, tChannelID C newTimers.insert(N); } -void cMailUpdateNotifier::AddModTimerNotification(tEventID EventID, tChannelID ChannelID) +void cMailUpdateNotifier::AddModTimerNotification(tEventID EventID, tChannelID ChannelID, uint timerMod) { - cMailTimerNotification N(EventID, ChannelID); - modTimers.insert(N); + if (timerMod == tmNoChange || timerMod == tmAuxEventID) // if anything but the eventID has changed + return; + cMailTimerNotification N(EventID, ChannelID, timerMod); + modTimers.insert(N); } void cMailUpdateNotifier::AddRemoveTimerNotification(cTimer* t, const cEvent* e) |