From 787b3e241a92bf6f984e2eb0d696cc9c0ee4b94b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 27 Sep 2013 09:08:20 +0000 Subject: [PATCH] * fine-tuning --- .../sourceforge/filebot/similarity/EpisodeMetrics.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java b/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java index 65d34e0d..7f20b728 100644 --- a/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java +++ b/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java @@ -141,17 +141,17 @@ public enum EpisodeMetrics implements SimilarityMetric { float sxe = EpisodeIdentifier.getSimilarity(o1, o2); float title = Title.getSimilarity(o1, o2); - // allow title to override SxE only if series name also is a good match - if (sxe < 1 && title == 1 && SeriesName.getSimilarity(o1, o2) < 0.5f) { - title = 0; - } - // account for misleading SxE patterns in the episode title if (sxe < 0 && title == 1 && EpisodeIdentifier.getSimilarity(getTitle(o1), getTitle(o2)) == 1) { sxe = 1; title = 0; } + // allow title to override SxE only if series name also is a good match + if (title == 1 && SeriesName.getSimilarity(o1, o2) < 0.5f) { + title = 0; + } + // 1:SxE && Title, 2:SxE return (float) ((max(sxe, 0) * title) + (floor(sxe) / 10)); }