From 445ca6f590a9ecc01b4deabc20074e0f46c090e4 Mon Sep 17 00:00:00 2001 From: Vilem Duha Date: Tue, 2 Jul 2019 22:21:33 +0200 Subject: BlenderKit: fix slugify function to avoid filename bugs with some more characters --- blenderkit/paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blenderkit/paths.py b/blenderkit/paths.py index 552ccbbd..c2d2ab06 100644 --- a/blenderkit/paths.py +++ b/blenderkit/paths.py @@ -137,10 +137,10 @@ def slugify(slug): Normalizes string, converts to lowercase, removes non-alpha characters, and converts spaces to hyphens. """ - import unicodedata, re slug = slug.lower() - slug.replace('.', '_') + slug = slug.replace('.', '_') + slug = slug.replace('"', '') slug = slug.replace(' ', '_') # import re # slug = unicodedata.normalize('NFKD', slug) -- cgit v1.2.3