Remove exclamation mark in --restrict-filenames mode
This commit is contained in:
parent
33d94a6c99
commit
dffe658bac
2 changed files with 3 additions and 3 deletions
|
@ -208,7 +208,7 @@ def sanitize_filename(s, restricted=False):
|
|||
return '_-' if restricted else ' -'
|
||||
elif char in '\\/|*<>':
|
||||
return '_'
|
||||
if restricted and (char in '&\'' or char.isspace()):
|
||||
if restricted and (char in '!&\'' or char.isspace()):
|
||||
return '_'
|
||||
if restricted and ord(char) > 127:
|
||||
return '_'
|
||||
|
@ -316,7 +316,7 @@ class ContentTooShortError(Exception):
|
|||
|
||||
class Trouble(Exception):
|
||||
"""Trouble helper exception
|
||||
|
||||
|
||||
This is an exception to be handled with
|
||||
FileDownloader.trouble
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue