diff options
author | horchi <vdr@jwendel.de> | 2018-03-10 08:22:06 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-03-10 08:22:06 +0100 |
commit | 69218e79181c863a92e51d0d0b8f8a31b31c66c2 (patch) | |
tree | a9a24d6684c2484c47a93f624c630502a03bda19 | |
parent | 267404563a6c67f4834f27e86fd89ec868528922 (diff) | |
download | vdr-epg-daemon-69218e79181c863a92e51d0d0b8f8a31b31c66c2.tar.gz vdr-epg-daemon-69218e79181c863a92e51d0d0b8f8a31b31c66c2.tar.bz2 |
2018-03-09: version 1.1.137 (horchi)\n bugfix: Try to fixed potential problem at timer modification\n\n1.1.137
-rw-r--r-- | HISTORY.h | 9 | ||||
-rw-r--r-- | lib/searchtimer.c | 9 |
2 files changed, 10 insertions, 8 deletions
@@ -4,8 +4,8 @@ * ----------------------------------- */ -#define _VERSION "1.1.136" -#define VERSION_DATE "07.03.2018" +#define _VERSION "1.1.137" +#define VERSION_DATE "09.03.2018" #define DB_API 6 #ifdef GIT_REV @@ -17,11 +17,14 @@ /* * ------------------------------------ * +2018-03-09: version 1.1.137 (horchi) + bugfix: Try to fixed potential problem at timer modification + 2018-03-08: version 1.1.136 (rechner) - added: if repeatFields shorttext checked, title is also checked and disabled - removed: description field in repeatFields - added: parameter osdTimerNotify - + 2018-03-07: version 1.1.135 (horchi) - bugfix: Fixed minor problem with auto timer and empty episode/shorttext diff --git a/lib/searchtimer.c b/lib/searchtimer.c index 2e990a8..77b19f1 100644 --- a/lib/searchtimer.c +++ b/lib/searchtimer.c @@ -706,7 +706,7 @@ int cSearchTimer::checkTimers() // check only active and pending timers with eventid - if (!timerDb->getIntValue("ACTIVE") || !timerDb->hasValue("STATE", "P") || !timerDb->getIntValue("EVENTID")) + if (!timerDb->getIntValue("ACTIVE") || !timerDb->hasCharValue("STATE", tsPending) || !timerDb->getIntValue("EVENTID")) continue; if (timerDb->hasValue("SOURCE", "epgs")) // 'epgs' => epgsearch plugin @@ -780,7 +780,7 @@ int cSearchTimer::checkTimers() l2pTime(timerDb->getIntValue("_STARTTIME")).c_str(), l2pTime(useeventsDb->getIntValue("STARTTIME")).c_str(), timerDb->getIntValue("ID")); - modifyTimer(timerDb, taAdjust); + modifyTimer(timerDb, timerDb->hasCharValue("ACTION", taCreate) ? taCreate : taAdjust); count++; } @@ -799,7 +799,7 @@ int cSearchTimer::checkTimers() ptyRecName->getResult(), timerDb->getIntValue("ID")); timerDb->setValue("FILE", ptyRecName->getResult()); - modifyTimer(timerDb, taModify); + modifyTimer(timerDb, timerDb->hasCharValue("ACTION", taCreate) ? taCreate : taModify); count++; } } @@ -829,8 +829,7 @@ int cSearchTimer::modifyTimer(cDbTable* timerDb, TimerAction action) timerDb->update(); tell(0, "Created '%s' request for timer (%ld) at vdr '%s'", - toName(action), - timerDb->getIntValue("ID"), timerDb->getStrValue("VDRUUID")); + toName(action), timerDb->getIntValue("ID"), timerDb->getStrValue("VDRUUID")); // triggerVdrs("TIMERJOB", timerDb->getStrValue("VDRUUID")); |