mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 07:42:09 +00:00
Tag: 0.2
Intermediate commits (oldest → newest): - Fixed version of spotify_dl - I also modified yt_dlp. But I do not remember what I changed. Have fun - Poprawiono obsluge rotowanych logow i troche ulepszono funkcje opowiadania o fabryczcce - Fucking windows bugfix and playlist gen fix
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
def sanitize(name, replace_with=""):
|
||||
"""
|
||||
Removes some of the reserved characters from the name so it can be saved
|
||||
:param name: Name to be cleaned up
|
||||
:return string containing the cleaned name
|
||||
"""
|
||||
clean_up_list = ["\\", "/", ":", "*", "?", '"', "<", ">", "|", "\0", "$", "\""]
|
||||
for x in clean_up_list:
|
||||
name = name.replace(x, replace_with)
|
||||
return name
|
||||
Reference in New Issue
Block a user