From 48392aab9ed36c389db18fb95e230d3eed08f18c Mon Sep 17 00:00:00 2001 From: horchi Date: Sat, 18 Mar 2017 09:22:29 +0100 Subject: 2017-03-18: version 1.1.112 (horchi)\n - bugfix: fixed imagecount value in events table\n\n --- HISTORY.h | 5 ++++- update.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HISTORY.h b/HISTORY.h index e778153..1620dee 100644 --- a/HISTORY.h +++ b/HISTORY.h @@ -4,7 +4,7 @@ * ----------------------------------- */ -#define _VERSION "1.1.111" +#define _VERSION "1.1.112" #define VERSION_DATE "18.03.2017" #define DB_API 4 @@ -17,6 +17,9 @@ /* * ------------------------------------ +2017-03-18: version 1.1.112 (horchi) + - bugfix: fixed imagecount value in events table + 2017-03-18: version 1.1.111 (horchi) - change: modified repeaing timer check statement to handle '' values like null values again - added: new view eventsview-perlbo.sql 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, ','))) -- cgit v1.2.3