aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-28 12:59:27 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-28 12:59:27 +0100
commit627dcfff398b00429c8b310f1c1775f9be6f0268 (patch)
tree38ca4e7dac4156fe02f553f243d26225fef66706 /youtube_dl/utils.py
parent799c0763845dfb82d53ecae0080b276f447144de (diff)
Restrict more characters (Closes #566)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
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 '_'