mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-23 16:28:49 -05:00
Remove trademark from filename
This commit is contained in:
parent
62f45524eb
commit
0fe2ba360e
@ -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(' .')
|
||||
|
Loading…
Reference in New Issue
Block a user