1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

filenamify: remove “ and ‘

fix #289
This commit is contained in:
Johan Andersson 2015-10-25 01:29:04 +02:00
parent c69803681e
commit c453f7c48b

View File

@ -138,6 +138,8 @@ def filenamify(title):
# Drop any non ascii letters/digits # Drop any non ascii letters/digits
title = re.sub(r'[^a-zA-Z0-9 -.]', '', title) title = re.sub(r'[^a-zA-Z0-9 -.]', '', title)
# Remove " and '
title = re.sub('[\"\']', '', title)
# Drop any leading/trailing whitespace that may have appeared # Drop any leading/trailing whitespace that may have appeared
title = title.strip() title = title.strip()
# Lowercase # Lowercase