From 158f73e703914b278255898e98e38e5846d629aa Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 8 Feb 2012 13:50:51 +0000 Subject: [PATCH] * ignore titles that are part of the series name when matching --- source/net/sourceforge/filebot/similarity/EpisodeMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java b/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java index 697443c8..7803a74d 100644 --- a/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java +++ b/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java @@ -96,7 +96,7 @@ public enum EpisodeMetrics implements SimilarityMetric { Episode e = (Episode) object; // don't use title for matching if title equals series name - if (!e.getTitle().equalsIgnoreCase(e.getSeriesName())) { + if (!e.getSeriesName().toLowerCase().contains(e.getTitle().toLowerCase())) { object = e.getTitle(); } }