diff options
author | Ricardo Garcia <[email protected]> | 2010-02-13 00:19:46 +0100 |
---|---|---|
committer | Ricardo Garcia <[email protected]> | 2010-10-31 11:26:30 +0100 |
commit | ce9c6a30977f06338f323c0c8346782da323f24b (patch) | |
tree | f094a8a2640ea283f9899eea2a3b14b7231c97fe | |
parent | 4cfeb46544e274fb7a855bfe017b44186021872d (diff) | |
download | youtube-dl-ce9c6a30977f06338f323c0c8346782da323f24b.tar.gz youtube-dl-ce9c6a30977f06338f323c0c8346782da323f24b.zip |
Fix problem with sanitize_title not replacing Windows directory separator
-rwxr-xr-x | youtube-dl | 2 |
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): |