1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* 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

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;