aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2025-01-11 13:05:23 -0600
committerGitHub <noreply@github.com>2025-01-11 19:05:23 +0000
commit8346b549150003df988538e54c9d8bc4de568979 (patch)
tree634bdb94223beb2fe67e0cb8cc264439aae99912
parent1f4e1e85a27c5b43e34d7706cfd88ffce1b56a4a (diff)
Fix filename sanitization with `--no-windows-filenames` (#11988)
Fix bug in 6fc85f617a5850307fd5b258477070e6ee177796 Closes #11987 Authored by: bashonly
-rw-r--r--yt_dlp/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 764baf3a0..178c5b951 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1323,7 +1323,7 @@ class YoutubeDL:
elif (sys.platform != 'win32' and not self.params.get('restrictfilenames')
and self.params.get('windowsfilenames') is False):
def sanitize(key, value):
- return value.replace('/', '\u29F8').replace('\0', '')
+ return str(value).replace('/', '\u29F8').replace('\0', '')
else:
def sanitize(key, value):
return filename_sanitizer(key, value, restricted=self.params.get('restrictfilenames'))