1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 08:25:03 -05:00

* fine-tune matching of partial sxe info

This commit is contained in:
Reinhard Pointner 2012-03-18 03:43:38 +00:00
parent 677ac82d58
commit b10b6743f6

View File

@ -31,7 +31,7 @@ public class SeasonEpisodeMetric implements SimilarityMetric {
return 1; return 1;
} }
if (sxe1.season == sxe2.season || sxe1.episode == sxe2.episode) { if ((sxe1.season >= 0 && sxe1.season == sxe2.season) || (sxe1.episode >= 0 && sxe1.episode == sxe2.episode)) {
// at least we have a partial match // at least we have a partial match
similarity = 0.5f; similarity = 0.5f;
} }