1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-12 06:18:01 -05:00

* 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

View File

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