sanitize some more characters. Not all of these might be unsafe but some are at least weird looking in filenames
This commit is contained in:
parent
bb19533df6
commit
a517f5c28c
@ -1,2 +1,6 @@
|
|||||||
|
characters_to_replace = ["/", ":", " ", "?", "!", "&"]
|
||||||
|
|
||||||
def sanitize_title (title):
|
def sanitize_title (title):
|
||||||
return title.replace("/", "-").replace(":", "-")
|
for character in characters_to_replace:
|
||||||
|
title = title.replace(character, "-")
|
||||||
|
return title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user