* ignore titles that are part of the series name when matching

This commit is contained in:
Reinhard Pointner 2012-02-08 13:50:51 +00:00
parent 315d0e9cb2
commit 158f73e703
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public enum EpisodeMetrics implements SimilarityMetric {
Episode e = (Episode) object;
// don't use title for matching if title equals series name
if (!e.getTitle().equalsIgnoreCase(e.getSeriesName())) {
if (!e.getSeriesName().toLowerCase().contains(e.getTitle().toLowerCase())) {
object = e.getTitle();
}
}