From 0fe2ba360e3162cf31b7570a04d6310d27b9d90c Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 20 Feb 2015 14:15:44 -0200 Subject: [PATCH] Remove trademark from filename --- sickbeard/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index fa02cbe4..2b15013d 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -190,6 +190,7 @@ def sanitizeFileName(name): # remove bad chars from the filename name = re.sub(r'[\\/\*]', '-', name) name = re.sub(r'[:"<>|?]', '', name) + name = re.sub(ur'\u2122', '', name) # Trade Mark Sign # remove leading/trailing periods and spaces name = name.strip(' .')