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;