mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* make sure important tokens are not normalized away
This commit is contained in:
parent
3436eac471
commit
a6338bc430
@ -5,6 +5,7 @@ package net.sourceforge.filebot.ui.rename;
|
||||
import static java.lang.Math.*;
|
||||
import static java.util.Arrays.*;
|
||||
import static java.util.Collections.*;
|
||||
import static net.sourceforge.filebot.hash.VerificationUtilities.*;
|
||||
import static net.sourceforge.tuned.FileUtilities.*;
|
||||
|
||||
import java.io.File;
|
||||
@ -238,9 +239,8 @@ public enum MatchSimilarityMetric implements SimilarityMetric {
|
||||
name = getNameWithoutExtension(((AbstractFile) object).getName());
|
||||
}
|
||||
|
||||
// remove group names and checksums, any [...] or (...)
|
||||
name = name.replaceAll("\\([^\\(]*\\)", "");
|
||||
name = name.replaceAll("\\[[^\\[]*\\]", "");
|
||||
// remove checksums, any [...] or (...)
|
||||
name = removeEmbeddedChecksum(name);
|
||||
|
||||
// remove/normalize special characters
|
||||
name = name.replaceAll("['`´]+", "");
|
||||
|
Loading…
Reference in New Issue
Block a user