* don't use title for matching if title equals series name

This commit is contained in:
Reinhard Pointner 2012-02-08 13:16:41 +00:00
parent 46b6d96160
commit 315d0e9cb2
1 changed files with 6 additions and 1 deletions

View File

@ -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) {