summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2008-12-03 19:32:01 +0100
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2008-12-03 19:32:01 +0100
commit64b95a3d0696a830daa398cb375cd434fc9f59ba (patch)
treeab1cc380f3c711c637c4b67e086c0ffc18493bad
parent53677636e841b9a8e9ef192b34671421ed06cfdb (diff)
downloadvdr-plugin-epgsearch-64b95a3d0696a830daa398cb375cd434fc9f59ba.tar.gz
vdr-plugin-epgsearch-64b95a3d0696a830daa398cb375cd434fc9f59ba.tar.bz2
fixed wrong comparison in previous new feature
-rw-r--r--epgsearchtools.c2
-rw-r--r--recdone.c2
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