* don't use title for matching if title equals series name
This commit is contained in:
parent
46b6d96160
commit
315d0e9cb2
|
@ -93,7 +93,12 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
|||
@Override
|
||||
protected String normalize(Object object) {
|
||||
if (object instanceof Episode) {
|
||||
object = ((Episode) object).getTitle();
|
||||
Episode e = (Episode) object;
|
||||
|
||||
// don't use title for matching if title equals series name
|
||||
if (!e.getTitle().equalsIgnoreCase(e.getSeriesName())) {
|
||||
object = e.getTitle();
|
||||
}
|
||||
}
|
||||
|
||||
if (object instanceof Movie) {
|
||||
|
|
Loading…
Reference in New Issue