1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

* max(a,b) should work better because the match will be based on either SxE or Date but never both

This commit is contained in:
Reinhard Pointner 2010-10-24 17:37:06 +00:00
parent 9c54b0b762
commit 24ffeac37c

View File

@ -47,7 +47,7 @@ public enum MatchSimilarityMetric implements SimilarityMetric {
@Override
public float getSimilarity(Object o1, Object o2) {
return SeasonEpisode.getSimilarity(o1, o2) + AirDate.getSimilarity(o1, o2);
return Math.max(SeasonEpisode.getSimilarity(o1, o2), AirDate.getSimilarity(o1, o2));
}
}),