mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-10 19:41:20 +00:00
Fix problem with sanitize_title not replacing Windows directory separator
This commit is contained in:
parent
4cfeb46544
commit
ce9c6a3097
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def sanitize_title(utitle):
|
||||||
"""
|
"""
|
||||||
utitle = re.sub(ur'(?u)&(.+?);', htmlentity_transform, utitle)
|
utitle = re.sub(ur'(?u)&(.+?);', htmlentity_transform, utitle)
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
return re.replace(ur'<>:"\|\?\*', u'-', title)
|
utitle = re.replace(ur'<>:"\|\?\*\\', u'-', utitle)
|
||||||
return utitle.replace(unicode(os.sep), u'%')
|
return utitle.replace(unicode(os.sep), u'%')
|
||||||
|
|
||||||
class DownloadError(Exception):
|
class DownloadError(Exception):
|
||||||
|
|
Loading…
Reference in a new issue