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(' ', '_')
|
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=True)
|
||||||
spaces=(not const.args.no_spaces))
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user