From 0f4809151a666f6f174f502a4f6180892ee0d316 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 23 Nov 2011 06:45:20 +0000 Subject: [PATCH] * adjusted fuzzy string matching to better work together with new title matching. Can be more lenient now that most title will be caught before fuzzy string matching already. --- .../sourceforge/filebot/ui/rename/MatchSimilarityMetric.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/ui/rename/MatchSimilarityMetric.java b/source/net/sourceforge/filebot/ui/rename/MatchSimilarityMetric.java index 53b6dc5d..25a6427b 100644 --- a/source/net/sourceforge/filebot/ui/rename/MatchSimilarityMetric.java +++ b/source/net/sourceforge/filebot/ui/rename/MatchSimilarityMetric.java @@ -186,9 +186,9 @@ public enum MatchSimilarityMetric implements SimilarityMetric { @Override public float getSimilarity(Object o1, Object o2) { - // normalize absolute similarity to similarity rank (10 ranks in total), + // normalize absolute similarity to similarity rank (5 ranks in total), // so we are less likely to fall for false positives in this pass, and move on to the next one - return (float) (floor(super.getSimilarity(o1, o2) * 10) / 10); + return (float) (floor(super.getSimilarity(o1, o2) * 5) / 5); }