mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-12 17:12:47 +01:00
[outtmpl] Alternate form of format type l for \n delimited list
This commit is contained in:
@@ -2099,7 +2099,9 @@ def sanitize_filename(s, restricted=False, is_id=False):
|
||||
def replace_insane(char):
|
||||
if restricted and char in ACCENT_CHARS:
|
||||
return ACCENT_CHARS[char]
|
||||
if char == '?' or ord(char) < 32 or ord(char) == 127:
|
||||
elif not restricted and char == '\n':
|
||||
return ' '
|
||||
elif char == '?' or ord(char) < 32 or ord(char) == 127:
|
||||
return ''
|
||||
elif char == '"':
|
||||
return '' if restricted else '\''
|
||||
|
||||
Reference in New Issue
Block a user