mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Fix spaces not being replaced by dashes when no metadata is found (#220)
This commit is contained in:
@@ -93,6 +93,10 @@ def generate_songname(file_format, tags):
|
||||
|
||||
def sanitize_title(title):
|
||||
""" Generate filename of the song to be downloaded. """
|
||||
|
||||
if const.args.no_spaces:
|
||||
title = title.replace(' ', '_')
|
||||
|
||||
# slugify removes any special characters
|
||||
title = slugify(title, ok='-_()[]{}\/', lower=False,
|
||||
spaces=(not const.args.no_spaces))
|
||||
|
||||
Reference in New Issue
Block a user