kopia lustrzana https://github.com/yt-dlp/yt-dlp
Fix filename sanitization with `--no-windows-filenames` (#11988)
Fix bug in 6fc85f617a
Closes #11987
Authored by: bashonly
pull/12059/head
rodzic
1f4e1e85a2
commit
8346b54915
yt_dlp
|
@ -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'))
|
||||
|
|
Ładowanie…
Reference in New Issue