From 8fd28c81ae1e590e8ec9cb04097b36c4e088101d Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 24 Jan 2018 17:36:20 +0100 Subject: [PATCH] Improve spaces replacement with slugify --- core/internals.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/internals.py b/core/internals.py index 3ae0f51..fa615ae 100755 --- a/core/internals.py +++ b/core/internals.py @@ -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