mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Improve spaces replacement with slugify
This commit is contained in:
@@ -98,8 +98,7 @@ def sanitize_title(title):
|
||||
title = title.replace(' ', '_')
|
||||
|
||||
# slugify removes any special characters
|
||||
title = slugify(title, ok='-_()[]{}\/', lower=False,
|
||||
spaces=(not const.args.no_spaces))
|
||||
title = slugify(title, ok='-_()[]{}\/', lower=False, spaces=True)
|
||||
return title
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user