diff --git a/mp3/compare_name.py b/mp3/compare_name.py index 3e9451d..40430e8 100644 --- a/mp3/compare_name.py +++ b/mp3/compare_name.py @@ -9,12 +9,19 @@ REPLACEMENTS = [ (".", ""), ("-", " "), (",", ""), + ("(", ""), + (")", ""), + (" ...",""), ] name_new = "" i = 1 def compare(s1: str, s2: str) -> bool: + if s1.endswith(" "): + s1 = s1[:-1] + if s2.endswith(" "): + s2 = s2[:-1] return normalize("NFKC", s1).casefold() == normalize("NFKC", s2).casefold()