summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2013-04-14 19:34:58 +0200
committerChristian Wieninger <cwieninger@gmx.de>2013-04-14 19:34:58 +0200
commite5b50757feff685cc7e2fe280ee940c1160b3aad (patch)
tree3d56660f20a540587f6728ad6e7a2ec21394f7e9
parente2de927a5f1ff844b34eacbbe8575ed053a167e7 (diff)
downloadvdr-plugin-epgsearch-e5b50757feff685cc7e2fe280ee940c1160b3aad.tar.gz
vdr-plugin-epgsearch-e5b50757feff685cc7e2fe280ee940c1160b3aad.tar.bz2
fix summary comparison when checking for repeats (was ML 'Epgsearch mysteries')
l---------README2
-rw-r--r--epgsearchext.c2
-rw-r--r--epgsearchtools.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/README b/README
index b18b191..b16bb82 120000
--- a/README
+++ b/README
@@ -1 +1 @@
-README.git \ No newline at end of file
+./doc/en/epgsearch.1.txt \ No newline at end of file
diff --git a/epgsearchext.c b/epgsearchext.c
index 9db9158..db0a9a7 100644
--- a/epgsearchext.c
+++ b/epgsearchext.c
@@ -1201,7 +1201,7 @@ void cSearchExt::CheckRepeatTimers(cSearchResults* pResults)
if (!pResultObjP->needsTimer) continue;
- if (EventsMatch(pEvent, pEventP, compareTitle, compareSubtitle, compareSummary, compareDate, catvaluesAvoidRepeat))
+ if (EventsMatch(pEvent, pEventP, compareTitle, compareSubtitle, compareSummary, compareDate, catvaluesAvoidRepeat, compareSummaryMatchInPercent))
{
if (!pFirstResultMatching) pFirstResultMatching = pResultObjP;
plannedTimers++;
diff --git a/epgsearchtools.c b/epgsearchtools.c
index 66c537f..6f7485a 100644
--- a/epgsearchtools.c
+++ b/epgsearchtools.c
@@ -506,7 +506,7 @@ bool DescriptionMatches(const char* eDescr, const char* rDescr, int matchLimit)
// last try with Levenshtein Distance, only compare the first 1000 chars
double fMatch = FuzzyMatch(eDescr, rDescr, 1000);
double tmp_matchlimit = matchLimit/100.0;
- if(maxLength - minLength < 5)
+ if(maxLength - minLength < 5 && matchLimit < 95)
{
tmp_matchlimit = 0.95;
LogFile.Log(2,"difference between both descriptions is < 5 setting matchlimit to: %.2f %%", tmp_matchlimit*100);