From 53677636e841b9a8e9ef192b34671421ed06cfdb Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Wed, 3 Dec 2008 19:02:09 +0100 Subject: avoid repeats: new option 'if present' for 'compare subtitle' --- epgsearchtools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epgsearchtools.c') diff --git a/epgsearchtools.c b/epgsearchtools.c index 8ae1493..b03c765 100644 --- a/epgsearchtools.c +++ b/epgsearchtools.c @@ -800,7 +800,7 @@ void PrepareTimerFile(const cEvent* event, cTimer* timer) } } -bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, bool compareSubtitle, bool compareSummary, unsigned long catvaluesAvoidRepeat) +bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, int compareSubtitle, bool compareSummary, unsigned long catvaluesAvoidRepeat) { if (!event1 || !event2) return false; if (event1 == event2) return true; @@ -831,7 +831,7 @@ bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, bool match = false; if ((!compareTitle || Title1 == Title2) && - (!compareSubtitle || (Subtitle1 == Subtitle2 && Subtitle1!=""))) + (!compareSubtitle || (Subtitle1 == Subtitle2 && (compareSubtitle==1 || Subtitle1!="")))) { const char* Descr1 = event1->Description(); const char* Descr2 = event2->Description(); -- cgit v1.2.3