Fixed version of spotify_dl

This commit is contained in:
2023-06-06 11:35:39 +02:00
parent 48f49d59e0
commit 6bc77f3720
7 changed files with 913 additions and 0 deletions
+10
View File
@@ -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