diff options
author | horchi <vdr@jwendel.de> | 2017-03-19 15:26:27 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-19 15:26:27 +0100 |
commit | e7aabe84f05fb90255051af9af1b84ad084c1247 (patch) | |
tree | 0a4ab541028d6edb928bbef94c4e8e9f15b42da7 /ttools.c | |
parent | f1f589bad4249680a8ea5d0008f31e4fb8caa849 (diff) | |
download | vdr-plugin-epg2vdr-e7aabe84f05fb90255051af9af1b84ad084c1247.tar.gz vdr-plugin-epg2vdr-e7aabe84f05fb90255051af9af1b84ad084c1247.tar.bz2 |
minor change
Diffstat (limited to 'ttools.c')
-rw-r--r-- | ttools.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |