* 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
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class SeasonEpisodeMetric implements SimilarityMetric {
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
similarity = 0.5f;
}