1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 00:38:52 -05:00

* 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

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();
}
}