1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-06 01:25:16 +00:00

Don't sanitize filename on Unix when --no-windows-filenames (#9591)

Closes #4547, Closes #8464
Authored by: pukkandan
This commit is contained in:
pukkandan
2024-12-23 15:57:25 +05:30
committed by GitHub
parent d298693b1b
commit 6fc85f617a
4 changed files with 28 additions and 12 deletions

View File

@@ -1370,12 +1370,12 @@ def create_parser():
help='Allow Unicode characters, "&" and spaces in filenames (default)')
filesystem.add_option(
'--windows-filenames',
action='store_true', dest='windowsfilenames', default=False,
action='store_true', dest='windowsfilenames', default=None,
help='Force filenames to be Windows-compatible')
filesystem.add_option(
'--no-windows-filenames',
action='store_false', dest='windowsfilenames',
help='Make filenames Windows-compatible only if using Windows (default)')
help='Sanitize filenames only minimally')
filesystem.add_option(
'--trim-filenames', '--trim-file-names', metavar='LENGTH',
dest='trim_file_name', default=0, type=int,