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:
parent
9226bda1cd
commit
f3aba4e598
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user