1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00
Reinhard Pointner 2016-04-29 15:53:10 +08:00
parent 0d34ea8139
commit c36548cb63

View File

@ -118,7 +118,7 @@ public enum EpisodeMetrics implements SimilarityMetric {
Episode e = (Episode) object;
// don't use title for matching if title equals series name
String normalizedToken = normalizeObject(removeTrailingBrackets(e.getTitle()));
String normalizedToken = normalizeObject(e.getTitle() == null ? null : removeTrailingBrackets(e.getTitle()));
if (normalizedToken.length() >= 4 && !normalizeObject(e.getSeriesName()).contains(normalizedToken)) {
return normalizedToken;
}