diff options
author | horchi <vdr@jwendel.de> | 2018-02-22 19:09:47 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-22 19:09:47 +0100 |
commit | b1b244a5b7ff76e6b6a07e05c0afe4cb0f69d6b4 (patch) | |
tree | 1067a6dc30399e9d53d7d9626c6cf98e62bfabd2 /timer.c | |
parent | 697e967988bbac57f344c5a0f496a6fb2d993a77 (diff) | |
download | vdr-plugin-epg2vdr-b1b244a5b7ff76e6b6a07e05c0afe4cb0f69d6b4.tar.gz vdr-plugin-epg2vdr-b1b244a5b7ff76e6b6a07e05c0afe4cb0f69d6b4.tar.bz2 |
2018-02-22 version 1.1.88 (horchi)\n - added: Optional switch timer notification message\n\n1.1.88
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -27,6 +27,15 @@ int cUpdate::checkSwitchTimer() if (time(0) < swTimer->start) { + if (!swTimer->notified && Epg2VdrConfig.switchTimerNotifyTime && time(0) >= swTimer->start - Epg2VdrConfig.switchTimerNotifyTime) + { + char* buf; + asprintf(&buf, "Switching in %ld seconds to '%s'", swTimer->start-time(0), swTimer->channelId.c_str()); + Skins.Message(mtInfo, buf); + free(buf); + swTimer->notified = yes; + } + it++; continue; } @@ -505,6 +514,7 @@ int cUpdate::takeSwitchTimer() switchTimers[timerid].eventId = timerDb->getIntValue("EVENTID"); switchTimers[timerid].channelId = timerDb->getStrValue("CHANNELID"); switchTimers[timerid].start = timerDb->getIntValue("_STARTTIME"); + switchTimers[timerid].notified = no; timerDb->setCharValue("ACTION", taAssumed); timerDb->setCharValue("STATE", tsPending); |