aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2024-12-23 15:57:25 +0530
committerGitHub <noreply@github.com>2024-12-23 15:57:25 +0530
commit6fc85f617a5850307fd5b258477070e6ee177796 (patch)
tree0359d4bc12041a3859cc9cbaf0aa409f829cf325 /yt_dlp/options.py
parentd298693b1b266d198e8eeecb90ea17c4a031268f (diff)
Don't sanitize filename on Unix when `--no-windows-filenames` (#9591)
Closes #4547, Closes #8464 Authored by: pukkandan
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 930d9d4be..06b65e0ea 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -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,