diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2012-11-27 17:15:33 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2012-11-27 17:15:33 +0100 |
commit | dffe658bac71531dc6aa72088c4d98f6a556bfbf (patch) | |
tree | 910753b3261883902e69f7e7ca896b778235a58f /youtube_dl/utils.py | |
parent | 33d94a6c999ae784be7529aaaea42adadeab0c27 (diff) |
Remove exclamation mark in --restrict-filenames mode
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 4ace22c2f..a0c41081a 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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 """ |