From b10b6743f65f3105646b333bb22fe302cba58626 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 18 Mar 2012 03:43:38 +0000 Subject: [PATCH] * fine-tune matching of partial sxe info --- .../net/sourceforge/filebot/similarity/SeasonEpisodeMetric.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/similarity/SeasonEpisodeMetric.java b/source/net/sourceforge/filebot/similarity/SeasonEpisodeMetric.java index 12f96f6a..4e823554 100644 --- a/source/net/sourceforge/filebot/similarity/SeasonEpisodeMetric.java +++ b/source/net/sourceforge/filebot/similarity/SeasonEpisodeMetric.java @@ -31,7 +31,7 @@ public class SeasonEpisodeMetric implements SimilarityMetric { return 1; } - if (sxe1.season == sxe2.season || sxe1.episode == sxe2.episode) { + if ((sxe1.season >= 0 && sxe1.season == sxe2.season) || (sxe1.episode >= 0 && sxe1.episode == sxe2.episode)) { // at least we have a partial match similarity = 0.5f; }