mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
* normalize ' to "", and not " ", e.g. Grey's Anatomy => Greys Anatomy
This commit is contained in:
parent
a55070088a
commit
bc2dff2cbc
@ -202,7 +202,8 @@ public class SeriesNameMatcher {
|
|||||||
name = name.replaceAll("\\([^\\(]*\\)", "");
|
name = name.replaceAll("\\([^\\(]*\\)", "");
|
||||||
name = name.replaceAll("\\[[^\\[]*\\]", "");
|
name = name.replaceAll("\\[[^\\[]*\\]", "");
|
||||||
|
|
||||||
// remove special characters
|
// remove/normalize special characters
|
||||||
|
name = name.replaceAll("['`´]+", "");
|
||||||
name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " ");
|
name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " ");
|
||||||
|
|
||||||
return name.trim();
|
return name.trim();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user