diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2012-11-28 12:59:27 +0100 |
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2012-11-28 12:59:27 +0100 |
| commit | 627dcfff398b00429c8b310f1c1775f9be6f0268 (patch) | |
| tree | 38ca4e7dac4156fe02f553f243d26225fef66706 /youtube_dl/utils.py | |
| parent | 799c0763845dfb82d53ecae0080b276f447144de (diff) | |
Restrict more characters (Closes #566)
Diffstat (limited to 'youtube_dl/utils.py')
| -rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 4600dc967..7f73b8476 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -330,7 +330,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 '_' |
