summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ttools.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ttools.c b/ttools.c
index accd0fb..1c4e376 100644
--- a/ttools.c
+++ b/ttools.c
@@ -6,6 +6,7 @@
*/
#include <string>
+#include <regex>
#include "update.h"
#include "ttools.h"
@@ -595,7 +596,6 @@ int enrichEvent(cEpgEvent* event, cDbTable* table, cDbStatement* select)
"imagecount", // int
"numrating", // int
-// "source" // ascii 25
"year", // ascii 10
"channelid", // ascii 50
"category", // ascii 50
@@ -640,6 +640,10 @@ int enrichEvent(cEpgEvent* event, cDbTable* table, cDbStatement* select)
else
event->setValue(fields[i], value->getIntValue());
}
+
+ std::string source = table->getStrValue("CNTSOURCE") + std::string("/") + table->getStrValue("SUBSOURCE");
+ source = regex_replace(source, regex("vdr"), "dvb");
+ event->setValue("source", source.c_str());
}
else
{