diff options
| author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-09-20 12:45:32 +0200 |
|---|---|---|
| committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-09-20 12:45:32 +0200 |
| commit | df09c23571eee2d45b856aed17b38deca44b0bbb (patch) | |
| tree | 99c0f827137d8535884562893fb5a92893e0dbd7 /searchtimer_thread.c | |
| parent | 5b4c9ee0bf713fc36709563733059426458ab485 (diff) | |
| download | vdr-plugin-epgsearch-df09c23571eee2d45b856aed17b38deca44b0bbb.tar.gz vdr-plugin-epgsearch-df09c23571eee2d45b856aed17b38deca44b0bbb.tar.bz2 | |
announcement of new events by mail
Diffstat (limited to 'searchtimer_thread.c')
| -rw-r--r-- | searchtimer_thread.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c index 2dbc7df..46a2e35 100644 --- a/searchtimer_thread.c +++ b/searchtimer_thread.c @@ -403,7 +403,7 @@ void cSearchTimerThread::Action(void) } } - if (searchExt->action == searchTimerActionAnnounceOnly) + if (searchExt->action == searchTimerActionAnnounceViaOSD) { if (t || // timer already exists or NoAnnounces.InList(pEvent) || // announcement not wanted anymore or @@ -424,7 +424,24 @@ void cSearchTimerThread::Action(void) continue; } - if (searchExt->action == searchTimerActionSwitchOnly || searchExt->action == searchTimerActionAnnounceAndSwitch) // add to switch list + if (searchExt->action == searchTimerActionAnnounceViaMail) + { + if (t || // timer already exists or + NoAnnounces.InList(pEvent) || + pEvent->StartTime() < time(NULL)) // already started? + { + if (Summary) free(Summary); + delete timer; + continue; + } + mailNotifier.AddAnnounceEventNotification(pEvent->EventID(), pEvent->ChannelID(), searchExt->ID); + + if (Summary) free(Summary); + delete timer; + continue; + } + if (searchExt->action == searchTimerActionSwitchOnly || + searchExt->action == searchTimerActionAnnounceAndSwitch) // add to switch list { time_t now = time(NULL); if (now < pEvent->StartTime()) |
