Avoid loosing identifying information (e.g. release group in brackets)
This commit is contained in:
parent
94417623be
commit
0cda058ae7
@ -196,13 +196,13 @@ public class SeriesNameMatcher {
|
|||||||
// series name ends at the first season episode pattern
|
// series name ends at the first season episode pattern
|
||||||
String seriesName = seasonEpisodeMatcher.head(name);
|
String seriesName = seasonEpisodeMatcher.head(name);
|
||||||
if (seriesName != null && seriesName.length() > 0) {
|
if (seriesName != null && seriesName.length() > 0) {
|
||||||
return normalizePunctuation(seriesName);
|
return seriesName;
|
||||||
}
|
}
|
||||||
|
|
||||||
int datePosition = dateMatcher.find(name, 0);
|
int datePosition = dateMatcher.find(name, 0);
|
||||||
if (datePosition > 0) {
|
if (datePosition > 0) {
|
||||||
// series name ends at the first season episode pattern
|
// series name ends at the first season episode pattern
|
||||||
return normalizePunctuation(name.substring(0, datePosition));
|
return name.substring(0, datePosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user