mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-30 22:27:33 +01:00
Fix filename sanitization with --no-windows-filenames
(#11988)
Fix bug in 6fc85f617a5850307fd5b258477070e6ee177796 Closes #11987 Authored by: bashonly
This commit is contained in:
parent
1f4e1e85a2
commit
8346b54915
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user