From e7aabe84f05fb90255051af9af1b84ad084c1247 Mon Sep 17 00:00:00 2001 From: horchi Date: Sun, 19 Mar 2017 15:26:27 +0100 Subject: minor change --- ttools.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ttools.c b/ttools.c index accd0fb..1c4e376 100644 --- a/ttools.c +++ b/ttools.c @@ -6,6 +6,7 @@ */ #include +#include #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 { -- cgit v1.2.3