Fix problem with sanitize_title not replacing Windows directory separator
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Fri, 12 Feb 2010 23:19:46 +0000 (00:19 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:26:30 +0000 (11:26 +0100)
youtube-dl

index 2e9ac62659cc46a929f6ddcaf70163594820c2cc..19159bb85f3075c7a8ced4f5824eedd2368b67ec 100755 (executable)
@@ -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):