mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 02:34:25 +02:00
change space replacment character from - to _
This commit is contained in:
parent
6d0d3edf78
commit
63fb7b4486
@ -36,7 +36,7 @@ def slugify(s,
|
||||
lower=True,
|
||||
spaces=False,
|
||||
only_ascii=False,
|
||||
space_replacement="-"):
|
||||
space_replacement="_"):
|
||||
"""
|
||||
Creates a unicode slug for given string with several options.
|
||||
L and N signify letter/number.
|
||||
@ -133,4 +133,4 @@ def sanitize(title):
|
||||
|
||||
ok = re.compile(r'[^\\/:*?"<>]')
|
||||
_title = "".join(x if ok.match(x) else "_" for x in _temp)
|
||||
return _title
|
||||
return _title
|
||||
|
Loading…
x
Reference in New Issue
Block a user