mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +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):
|
def sanitize_title(title):
|
||||||
""" Generate filename of the song to be downloaded. """
|
""" Generate filename of the song to be downloaded. """
|
||||||
|
|
||||||
|
if const.args.no_spaces:
|
||||||
|
title = title.replace(' ', '_')
|
||||||
|
|
||||||
# slugify removes any special characters
|
# slugify removes any special characters
|
||||||
title = slugify(title, ok='-_()[]{}\/', lower=False,
|
title = slugify(title, ok='-_()[]{}\/', lower=False,
|
||||||
spaces=(not const.args.no_spaces))
|
spaces=(not const.args.no_spaces))
|
||||||
|
|||||||
Reference in New Issue
Block a user