From 24ffeac37cad4bb8e1913e25a35021323c852d26 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 24 Oct 2010 17:37:06 +0000 Subject: [PATCH] * max(a,b) should work better because the match will be based on either SxE or Date but never both --- .../filebot/ui/panel/rename/MatchSimilarityMetric.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/panel/rename/MatchSimilarityMetric.java b/source/net/sourceforge/filebot/ui/panel/rename/MatchSimilarityMetric.java index 563baea7..ecb832e7 100644 --- a/source/net/sourceforge/filebot/ui/panel/rename/MatchSimilarityMetric.java +++ b/source/net/sourceforge/filebot/ui/panel/rename/MatchSimilarityMetric.java @@ -47,7 +47,7 @@ public enum MatchSimilarityMetric implements SimilarityMetric { @Override public float getSimilarity(Object o1, Object o2) { - return SeasonEpisode.getSimilarity(o1, o2) + AirDate.getSimilarity(o1, o2); + return Math.max(SeasonEpisode.getSimilarity(o1, o2), AirDate.getSimilarity(o1, o2)); } }),