diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2010-02-11 20:14:59 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2010-02-11 20:14:59 +0100 |
commit | 2e1cf1296e94cfbb9c9c0dacc6da9d09f0bf83c4 (patch) | |
tree | b436b06455bfca386af0e348531f40a48e09672c /recdone.c | |
parent | 37a827b8909263960c173ca72d656e0ed15df693 (diff) | |
download | vdr-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |