summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-18 09:22:29 +0100
committerhorchi <vdr@jwendel.de>2017-03-18 09:22:29 +0100
commit48392aab9ed36c389db18fb95e230d3eed08f18c (patch)
tree2883310cb735ffa8e66fb0a16c2e512b0fb28649 /update.c
parent7d30c12632dd4df671594767798a876ccf3e5ef6 (diff)
downloadvdr-epg-daemon-48392aab9ed36c389db18fb95e230d3eed08f18c.tar.gz
vdr-epg-daemon-48392aab9ed36c389db18fb95e230d3eed08f18c.tar.bz2
2017-03-18: version 1.1.112 (horchi)\n - bugfix: fixed imagecount value in events table\n\n1.1.112
Diffstat (limited to 'update.c')
-rw-r--r--update.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/update.c b/update.c
index f79ab68..b0d61be 100644
--- a/update.c
+++ b/update.c
@@ -1808,7 +1808,7 @@ int cEpgd::parseEvent(cDbRow* event, xmlNode* node)
event->getBigintValue("EVENTID"),
event->getStrValue("FILEREF"));
- event->setValue("IMAGECOUNT", imgCnt);
+ event->setValue("IMAGECOUNT", min(imgCnt, EpgdConfig.maximagesperevent));
free(images);
free(imagetype);
@@ -1829,6 +1829,8 @@ int cEpgd::storeImageRefs(tEventId evtId, const char* source, const char* images
char* imagesCsv = strdup(images);
int count = 0;
+ // #TODO limit here to EpgdConfig.maximagesperevent
+
for (char* p = imagesCsv; p && *p; p = next, lfn++)
{
if ((next = strchr(p, ',')))