Replace '/' with '_' instead of deleting it

This commit is contained in:
ritiek
2017-07-12 00:03:38 +05:30
parent d28ff08a69
commit ce3a6c3d5a

View File

@@ -80,6 +80,7 @@ def is_spotify(raw_song):
def sanitize_title(title):
"""Generate filename of the song to be downloaded."""
title = title.replace(' ', '_')
title = title.replace('/', '_')
# slugify removes any special characters
title = slugify(title, ok='-_()[]{}', lower=False)