Remove Chinese special chars in titles

This commit is contained in:
xcffl 2020-03-02 22:48:17 +08:00
parent 78f858a875
commit 348338f75c
No known key found for this signature in database
GPG Key ID: C64681FA6C2FA680

View File

@ -384,7 +384,7 @@ class Source(Plugin):
# Remove hyphens only if they have whitespace before them # Remove hyphens only if they have whitespace before them
(r'(\s-)', ' '), (r'(\s-)', ' '),
# Replace other special chars with a space # Replace other special chars with a space
(r'''[:,;!@$%^&*(){}.`~"\s\[\]/]''', ' '), (r'''[:,;!@$%^&*(){}.`~"\s\[\]/]《》''', ' '),
]] ]]
for pat, repl in title_patterns: for pat, repl in title_patterns: