From 50a917d645a1000afb1ff5e7d4419ec653a70126 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 19 Apr 2013 09:19:49 +0000 Subject: [PATCH] * more strict season pattern matching --- .../sourceforge/filebot/similarity/SeasonEpisodeMatcher.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/similarity/SeasonEpisodeMatcher.java b/source/net/sourceforge/filebot/similarity/SeasonEpisodeMatcher.java index 12d2ed58..82329179 100644 --- a/source/net/sourceforge/filebot/similarity/SeasonEpisodeMatcher.java +++ b/source/net/sourceforge/filebot/similarity/SeasonEpisodeMatcher.java @@ -91,7 +91,7 @@ public class SeasonEpisodeMatcher { } // season folder pattern for complementing partial sxe info from filename - seasonPattern = compile("Season\\D?(\\d{1,2})", CASE_INSENSITIVE | UNICODE_CASE); + seasonPattern = compile("Season[-._ ]?(\\d{1,2})", CASE_INSENSITIVE | UNICODE_CASE); } @@ -132,7 +132,6 @@ public class SeasonEpisodeMatcher { return match; } } - return null; }