From ab62379e72d57c955d323cff7266ac20966bc410 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 14 Apr 2014 07:17:17 +0000 Subject: [PATCH] * while removeBrackets may be too much, normalizePunctuation is probably required --- .../net/sourceforge/filebot/similarity/SeriesNameMatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java b/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java index 46d045d0..51438901 100644 --- a/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java +++ b/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java @@ -192,13 +192,13 @@ public class SeriesNameMatcher { int seasonEpisodePosition = seasonEpisodeMatcher.find(name, 0); if (seasonEpisodePosition > 0) { // series name ends at the first season episode pattern - return name.substring(0, seasonEpisodePosition).trim(); + return normalizePunctuation(name.substring(0, seasonEpisodePosition)); } int datePosition = dateMatcher.find(name, 0); if (datePosition > 0) { // series name ends at the first season episode pattern - return name.substring(0, datePosition).trim(); + return normalizePunctuation(name.substring(0, datePosition)); } return null;