remove characters from title
Note that this should be a whitelist of characters instead of a blacklist approach
This commit is contained in:
parent
aec83057ca
commit
d4d346e6cb
@ -244,7 +244,7 @@ def valid_filename(filename):
|
||||
"""
|
||||
valid_filename = ''
|
||||
for char in filename.strip():
|
||||
if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')']:
|
||||
if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'']:
|
||||
if len(char) and valid_filename[-1] != '-':
|
||||
valid_filename += '-'
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user