* while removeBrackets may be too much, normalizePunctuation is probably required
This commit is contained in:
parent
a0ae0392da
commit
ab62379e72
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue