Avoid loosing identifying information (e.g. release group in brackets)

This commit is contained in:
Reinhard Pointner 2016-04-05 18:06:04 +00:00
parent 94417623be
commit 0cda058ae7

View File

@ -196,13 +196,13 @@ public class SeriesNameMatcher {
// series name ends at the first season episode pattern
String seriesName = seasonEpisodeMatcher.head(name);
if (seriesName != null && seriesName.length() > 0) {
return normalizePunctuation(seriesName);
return seriesName;
}
int datePosition = dateMatcher.find(name, 0);
if (datePosition > 0) {
// series name ends at the first season episode pattern
return normalizePunctuation(name.substring(0, datePosition));
return name.substring(0, datePosition);
}
return null;