* don't just force SxE patterns -> consider movie mode

This commit is contained in:
Reinhard Pointner 2013-01-16 14:24:08 +00:00
parent 15722d00c6
commit 66cb0510ed
1 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,11 @@ public final class SubtitleUtilities {
@Override
public float getSimilarity(Object o1, Object o2) {
return SeasonEpisode.getSimilarity(o1, o2) < 1 ? -1 : 1;
float f = SeasonEpisode.getSimilarity(o1, o2);
if (f == 0)
return 0;
return f < 1 ? -1 : 1;
}
};
SimilarityMetric sanity = new MetricCascade(FileSize, FileName, absoluteSeasonEpisode, AirDate, Title, Name);