summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-06-07 20:31:47 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-06-07 20:31:47 +0200
commit3b592ea06c26227308932e4568af044040860c47 (patch)
tree79c489272151630b4a731fb21d1b83a12087b8a3
parentaa62bc397b15c060c9326a22db26797d18b52789 (diff)
downloadvdr-plugin-epgsearch-3b592ea06c26227308932e4568af044040860c47.tar.gz
vdr-plugin-epgsearch-3b592ea06c26227308932e4568af044040860c47.tar.bz2
check result of SVDRP commands when adding/modifying timers
-rw-r--r--searchtimer_thread.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c
index 687656f..3cc2417 100644
--- a/searchtimer_thread.c
+++ b/searchtimer_thread.c
@@ -688,25 +688,27 @@ bool cSearchTimerThread::AddModTimer(cTimer* Timer, int index, cSearchExt* searc
Timer->File(),
tmpSummary?tmpSummary:"");
- SendViaSVDRP(cmdbuf);
+ if (!SendViaSVDRP(cmdbuf))
+ return false;
+
if (gl_timerStatusMonitor) gl_timerStatusMonitor->SetConflictCheckAdvised();
-
+
cTimerDone* timerdone = new cTimerDone(start, stop, pEvent, searchExt->ID);
if (index==0)
- TimersDone.Add(timerdone);
+ TimersDone.Add(timerdone);
else
- TimersDone.Update(start, stop, pEvent, searchExt->ID, timerdone);
-
+ TimersDone.Update(start, stop, pEvent, searchExt->ID, timerdone);
+
if (EPGSearchConfig.sendMailOnSearchtimers)
- {
- if (index==0) // new
+ {
+ if (index==0) // new
mailNotifier.AddNewTimerNotification(pEvent->EventID(), pEvent->ChannelID());
- else
- mailNotifier.AddModTimerNotification(pEvent->EventID(), pEvent->ChannelID(), timerMod);
- }
+ else
+ mailNotifier.AddModTimerNotification(pEvent->EventID(), pEvent->ChannelID(), timerMod);
+ }
free(cmdbuf);
if (tmpSummary) free(tmpSummary);
-
+
return true;
}