* while removeBrackets may be too much, normalizePunctuation is probably required

This commit is contained in:
Reinhard Pointner 2014-04-14 07:17:17 +00:00
parent a0ae0392da
commit ab62379e72
1 changed files with 2 additions and 2 deletions

View File

@ -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;