1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* 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

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