* 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:
parent
c5f3a89ed0
commit
bcfb36905e
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue