1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-23 16:28:49 -05:00

Merge pull request #1370 from fernandog/special_char_tm

Remove trademark from filename
This commit is contained in:
Fernando 2015-02-20 23:28:27 -02:00
commit dc6e4c6816

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