1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-24 08:48:50 -05:00

Remove trademark from filename

This commit is contained in:
Fernando 2015-02-20 14:15:44 -02:00
parent 62f45524eb
commit 0fe2ba360e

View File

@ -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(' .')