mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
parent
c69803681e
commit
c453f7c48b
@ -138,6 +138,8 @@ def filenamify(title):
|
||||
|
||||
# Drop any non ascii letters/digits
|
||||
title = re.sub(r'[^a-zA-Z0-9 -.]', '', title)
|
||||
# Remove " and '
|
||||
title = re.sub('[\"\']', '', title)
|
||||
# Drop any leading/trailing whitespace that may have appeared
|
||||
title = title.strip()
|
||||
# Lowercase
|
||||
|
Loading…
Reference in New Issue
Block a user