summaryrefslogtreecommitdiff
path: root/recdone.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2010-02-11 20:14:59 +0100
committerChristian Wieninger <cwieninger@gmx.de>2010-02-11 20:14:59 +0100
commit2e1cf1296e94cfbb9c9c0dacc6da9d09f0bf83c4 (patch)
treeb436b06455bfca386af0e348531f40a48e09672c /recdone.c
parent37a827b8909263960c173ca72d656e0ed15df693 (diff)
downloadvdr-plugin-epgsearch-2e1cf1296e94cfbb9c9c0dacc6da9d09f0bf83c4.tar.gz
vdr-plugin-epgsearch-2e1cf1296e94cfbb9c9c0dacc6da9d09f0bf83c4.tar.bz2
new option the set the required match for 'compare summary'
Diffstat (limited to 'recdone.c')
-rw-r--r--recdone.c8
1 files changed, 4 insertions, 4 deletions
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
{