mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-03 10:50:28 +00:00
Restrict more characters (Closes #566)
This commit is contained in:
@@ -330,7 +330,7 @@ def sanitize_filename(s, restricted=False):
|
||||
return '_-' if restricted else ' -'
|
||||
elif char in '\\/|*<>':
|
||||
return '_'
|
||||
if restricted and (char in '!&\'' or char.isspace()):
|
||||
if restricted and (char in '!&\'()[]{}$;`^,#' or char.isspace()):
|
||||
return '_'
|
||||
if restricted and ord(char) > 127:
|
||||
return '_'
|
||||
|
Reference in New Issue
Block a user