From: Ricardo Garcia Date: Fri, 12 Feb 2010 23:19:46 +0000 (+0100) Subject: Fix problem with sanitize_title not replacing Windows directory separator X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ce9c6a30977f06338f323c0c8346782da323f24b;p=youtube-dl Fix problem with sanitize_title not replacing Windows directory separator --- 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):