From 66cb0510ed82e262a8262e931ef153498beaa0f2 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 16 Jan 2013 14:24:08 +0000 Subject: [PATCH] * don't just force SxE patterns -> consider movie mode --- .../net/sourceforge/filebot/subtitle/SubtitleUtilities.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/subtitle/SubtitleUtilities.java b/source/net/sourceforge/filebot/subtitle/SubtitleUtilities.java index ca3ebb7e..4b43257d 100644 --- a/source/net/sourceforge/filebot/subtitle/SubtitleUtilities.java +++ b/source/net/sourceforge/filebot/subtitle/SubtitleUtilities.java @@ -53,7 +53,11 @@ public final class SubtitleUtilities { @Override public float getSimilarity(Object o1, Object o2) { - return SeasonEpisode.getSimilarity(o1, o2) < 1 ? -1 : 1; + float f = SeasonEpisode.getSimilarity(o1, o2); + if (f == 0) + return 0; + + return f < 1 ? -1 : 1; } }; SimilarityMetric sanity = new MetricCascade(FileSize, FileName, absoluteSeasonEpisode, AirDate, Title, Name);