aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-29 15:38:07 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-29 15:38:07 +0100
commit8192ebe1f874b22b0c27e675a4136a06e46a68ce (patch)
tree43e0feda4e3381d0c9455a7760093533d47145a5 /youtube_dl/utils.py
parentcaaa47d37215f498c033afb42972c135be8138d4 (diff)
parent20ba04267c3c2be27a766a43f34014012799b761 (diff)
Merge remote-tracking branch 'origin/master' into fork_master
New tests - merged with md5 correction
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 '_'