From 2e1cf1296e94cfbb9c9c0dacc6da9d09f0bf83c4 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Thu, 11 Feb 2010 20:14:59 +0100 Subject: new option the set the required match for 'compare summary' --- recdone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'recdone.c') diff --git a/recdone.c b/recdone.c index 10e9c15..464b646 100644 --- a/recdone.c +++ b/recdone.c @@ -227,12 +227,12 @@ int cRecDone::ChannelNr() } // -- cRecsDone ----------------------------------------------------------------- -int cRecsDone::GetCountRecordings(const cEvent* event, cSearchExt* search, cRecDone** first) +int cRecsDone::GetCountRecordings(const cEvent* event, cSearchExt* search, cRecDone** first, int matchLimit) { - return GetCountRecordings(event, search->compareTitle, search->compareSubtitle, search->compareSummary, search->catvaluesAvoidRepeat, first); + return GetCountRecordings(event, search->compareTitle, search->compareSubtitle, search->compareSummary, search->catvaluesAvoidRepeat, first, matchLimit); } -int cRecsDone::GetCountRecordings(const cEvent* event, bool compareTitle, int compareSubtitle, bool compareSummary, unsigned long catvaluesAvoidRepeat, cRecDone** first) +int cRecsDone::GetCountRecordings(const cEvent* event, bool compareTitle, int compareSubtitle, bool compareSummary, unsigned long catvaluesAvoidRepeat, cRecDone** first, int matchLimit) { if (first) *first = NULL; @@ -296,7 +296,7 @@ int cRecsDone::GetCountRecordings(const cEvent* event, bool compareTitle, int co if ((!compareTitle || rTitle == eTitle) && (!compareSubtitle || (rSubtitle == eSubtitle && (compareSubtitle==2 || rSubtitle !=""))) && - (!compareSummary || DescriptionMatches(eRawDescr.c_str(), rRawDescr.c_str()))) + (!compareSummary || DescriptionMatches(eRawDescr.c_str(), rRawDescr.c_str(), matchLimit))) { if (catvaluesAvoidRepeat != 0) // check categories { -- cgit v1.2.3