mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-18 14:53:04 +01:00
Fix filename sanitization with --no-windows-filenames
(#11988)
Fix bug in 6fc85f617a
Closes #11987
Authored by: bashonly
This commit is contained in:
parent
1f4e1e85a2
commit
8346b54915
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue