Browse Source

Fix problem with sanitize_title not replacing Windows directory separator

rtmp_test
Ricardo Garcia 15 years ago
parent
commit
ce9c6a3097
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube-dl

+ 1
- 1
youtube-dl View File

@ -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):


Loading…
Cancel
Save