aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-02-13 00:19:46 +0100
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:26:30 +0100
commitce9c6a30977f06338f323c0c8346782da323f24b (patch)
treef094a8a2640ea283f9899eea2a3b14b7231c97fe
parent4cfeb46544e274fb7a855bfe017b44186021872d (diff)
Fix problem with sanitize_title not replacing Windows directory separator
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 2e9ac6265..19159bb85 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -85,7 +85,7 @@ def sanitize_title(utitle):
"""
utitle = re.sub(ur'(?u)&(.+?);', htmlentity_transform, utitle)
if sys.platform == 'win32':
- return re.replace(ur'<>:"\|\?\*', u'-', title)
+ utitle = re.replace(ur'<>:"\|\?\*\\', u'-', utitle)
return utitle.replace(unicode(os.sep), u'%')
class DownloadError(Exception):