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:
Adrian Malacoda 2016-11-27 02:06:07 -06:00
parent bb19533df6
commit a517f5c28c

View File

@ -1,2 +1,6 @@
characters_to_replace = ["/", ":", " ", "?", "!", "&"]
def sanitize_title (title):
return title.replace("/", "-").replace(":", "-")
for character in characters_to_replace:
title = title.replace(character, "-")
return title