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