diff options
author | Johann Friedrichs <johann.friedrichs@web.de> | 2021-04-12 15:21:53 +0200 |
---|---|---|
committer | Johann Friedrichs <johann.friedrichs@web.de> | 2021-04-12 15:21:53 +0200 |
commit | 2844b5dce57c48d49693406b12f857f36f358d37 (patch) | |
tree | b2ad5fd6eec2df2b909087cc8e78249eaac553cc /epgsearchtools.c | |
parent | c34e463a806e198ba70c911be502f93da8c66896 (diff) | |
download | vdr-plugin-epgsearch-2844b5dce57c48d49693406b12f857f36f358d37.tar.gz vdr-plugin-epgsearch-2844b5dce57c48d49693406b12f857f36f358d37.tar.bz2 |
Clarified "avoid repeats".
Forced subtitle-comparison is named "yes" again. New option "allow empty"
Diffstat (limited to 'epgsearchtools.c')
-rw-r--r-- | epgsearchtools.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epgsearchtools.c b/epgsearchtools.c index 7890eb4..e011e0c 100644 --- a/epgsearchtools.c +++ b/epgsearchtools.c @@ -616,7 +616,11 @@ bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, bool match = false; if ((!compareTitle || Title1 == Title2) && - (!compareSubtitle || (Subtitle1 == Subtitle2 && Subtitle1 != ""))) { + // try if we don't compare Title or Title is equal + (!compareSubtitle || + (Subtitle1 == Subtitle2 && (compareSubtitle==2 || Subtitle1 != "")))) { + // try if we don't compare Subtitle or Subtitle is equal + // and not empty in case compareSubtitle is set to "yes" const char* Descr1 = event1->Description(); const char* Descr2 = event2->Description(); if (compareSummary) { |