From 64b95a3d0696a830daa398cb375cd434fc9f59ba Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Wed, 3 Dec 2008 19:32:01 +0100 Subject: fixed wrong comparison in previous new feature --- epgsearchtools.c | 2 +- recdone.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epgsearchtools.c b/epgsearchtools.c index b03c765..13439a1 100644 --- a/epgsearchtools.c +++ b/epgsearchtools.c @@ -831,7 +831,7 @@ bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, bool match = false; if ((!compareTitle || Title1 == Title2) && - (!compareSubtitle || (Subtitle1 == Subtitle2 && (compareSubtitle==1 || Subtitle1!="")))) + (!compareSubtitle || (Subtitle1 == Subtitle2 && (compareSubtitle==2 || Subtitle1!="")))) { const char* Descr1 = event1->Description(); const char* Descr2 = event2->Description(); diff --git a/recdone.c b/recdone.c index 5cccf6c..893f32e 100644 --- a/recdone.c +++ b/recdone.c @@ -295,7 +295,7 @@ int cRecsDone::GetCountRecordings(const cEvent* event, bool compareTitle, int co } if ((!compareTitle || rTitle == eTitle) && - (!compareSubtitle || (rSubtitle == eSubtitle && (compareSubtitle==1 || rSubtitle !=""))) && + (!compareSubtitle || (rSubtitle == eSubtitle && (compareSubtitle==2 || rSubtitle !=""))) && (!compareSummary || DescriptionMatches(eRawDescr.c_str(), rRawDescr.c_str()))) { if (catvaluesAvoidRepeat != 0) // check categories -- cgit v1.2.3