1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

filenamify: replace with dot instead of dash

This commit is contained in:
Johan Andersson 2015-10-13 23:21:47 +02:00
parent 9226bda1cd
commit f3aba4e598

View File

@ -138,8 +138,8 @@ def filenamify(title):
title = title.strip()
# Lowercase
title = title.lower()
# Replace whitespace with dash
title = re.sub(r'[-\s]+', '-', title)
# Replace whitespace with dot
title = re.sub(r'\s+', '.', title)
return title