Versuchs mal hiermit:
root@gate {master u=} ~/source/epgd> git diff lib/searchtimer.c lib/searchtimer.h
diff --git a/lib/searchtimer.c b/lib/searchtimer.c
index 4a958a4..902f41a 100644
--- a/lib/searchtimer.c
+++ b/lib/searchtimer.c
@@ -80,21 +80,21 @@ cSearchTimer::cSearchTimer(cFrame* aParent)
lastSearchTimerUpdate = 0;
- ptyRecName = new Python("recording", "name");
+ // ptyRecName = new Python("recording", "name");
}
cSearchTimer::~cSearchTimer()
{
- delete ptyRecName;
+ // delete ptyRecName;
}
int cSearchTimer::init(const char* confDir)
{
- if (ptyRecName->init(confDir) != success)
- {
- tell("Error: Init of python script recording.py failed, aborting");
- return fail;
- }
+ // if (ptyRecName->init(confDir) != success)
+ // {
+ // tell("Error: Init of python script recording.py failed, aborting");
+ // return fail;
+ // }
return done;
}
@@ -784,19 +784,19 @@ int cSearchTimer::checkTimers()
{
// execute python - calc recording name
- if (ptyRecName->execute(useeventsDb, namingmode, tmplExpression) == success)
- {
- if (!timerDb->hasValue("FILE", ptyRecName->getResult()))
- {
- parent->message(0, 'I', "EPGD: Timer action", "Calculated name of event (%ld) changed from '%s' to '%s', updating timer (%ld)!",
- timerDb->getIntValue("EVENTID"), timerDb->getStrValue("FILE"),
- ptyRecName->getResult(), timerDb->getIntValue("ID"));
-
- timerDb->setValue("FILE", ptyRecName->getResult());
- modifyTimer(timerDb, timerDb->hasCharValue("ACTION", taCreate) ? taCreate : taModify);
- count++;
- }
- }
+ // if (ptyRecName->execute(useeventsDb, namingmode, tmplExpression) == success)
+ // {
+ // if (!timerDb->hasValue("FILE", ptyRecName->getResult()))
+ // {
+ // parent->message(0, 'I', "EPGD: Timer action", "Calculated name of event (%ld) changed from '%s' to '%s', updating timer (%ld)!",
+ // timerDb->getIntValue("EVENTID"), timerDb->getStrValue("FILE"),
+ // ptyRecName->getResult(), timerDb->getIntValue("ID"));
+
+ // timerDb->setValue("FILE", ptyRecName->getResult());
+ // modifyTimer(timerDb, timerDb->hasCharValue("ACTION", taCreate) ? taCreate : taModify);
+ // count++;
+ // }
+ // }
}
selectEvent->freeResult();
@@ -1352,14 +1352,14 @@ int cSearchTimer::createTimer(int id)
{
// execupe python - calc recording name
- if (ptyRecName->execute(useeventsDb, namingmode, tmplExpression) == success)
- {
- tell(eloSearch, "Info: The recording name calculated by 'recording.py' is '%s'",
- ptyRecName->getResult());
+ // if (ptyRecName->execute(useeventsDb, namingmode, tmplExpression) == success)
+ // {
+ // tell(eloSearch, "Info: The recording name calculated by 'recording.py' is '%s'",
+ // ptyRecName->getResult());
- if (!isEmpty(ptyRecName->getResult()))
- timerRow.setValue("FILE", ptyRecName->getResult());
- }
+ // if (!isEmpty(ptyRecName->getResult()))
+ // timerRow.setValue("FILE", ptyRecName->getResult());
+ // }
}
// for 'event' based timers, check on failed attemps for this eventid
diff --git a/lib/searchtimer.h b/lib/searchtimer.h
index 66efd57..58b3eca 100644
--- a/lib/searchtimer.h
+++ b/lib/searchtimer.h
@@ -69,7 +69,7 @@ class cSearchTimer
// data
- Python* ptyRecName {};
+ // Python* ptyRecName {};
cDbConnection* connection {};
Display More
Ist nur ein Test um es einzugrenzen, keine Lösung. Dden epgd würde ich damit nicht tauschen nur den ephghttpd sonst hebelst du auch dort das generieren der Namen aus.