From ce9c6a30977f06338f323c0c8346782da323f24b Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Date: Sat, 13 Feb 2010 00:19:46 +0100 Subject: Fix problem with sanitize_title not replacing Windows directory separator --- youtube-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3