* better duplicate detection, e.g. Star Wars: The Clone Wars VS Star Wars The Clone Wars => should be one result

This commit is contained in:
Reinhard Pointner 2012-11-18 05:23:16 +00:00
parent c5f3a89ed0
commit bcfb36905e
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ public class MediaDetection {
// don't allow duplicates
Map<String, String> unique = new LinkedHashMap<String, String>();
for (String it : names) {
unique.put(it.toLowerCase(), it);
unique.put(normalizePunctuation(it).toLowerCase(), it);
}
return new ArrayList<String>(unique.values());
}