From 301c026ca981407c224ef6f5c8a27e2b42bfa39f Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 20 May 2023 22:10:55 +0100 Subject: [PATCH] Remove Smart/Fancy Left/Right Quotation Marks from Filename Sanitizer --- devine/core/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/utilities.py b/devine/core/utilities.py index 0706203..174368d 100644 --- a/devine/core/utilities.py +++ b/devine/core/utilities.py @@ -111,7 +111,7 @@ def sanitize_filename(filename: str, spacer: str = ".") -> str: replace("/", " & ").\ replace(";", " & ") # e.g. multi-episode filenames filename = re.sub(r"[:; ]", spacer, filename) # structural chars to (spacer) - filename = re.sub(r"[\\*!?¿,'\"()<>|$#]", "", filename) # not filename safe chars + filename = re.sub(r"[\\*!?¿,'\"“”()<>|$#]", "", filename) # not filename safe chars filename = re.sub(rf"[{spacer}]{{2,}}", spacer, filename) # remove extra neighbouring (spacer)s return filename