projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cfeb46
)
Fix problem with sanitize_title not replacing Windows directory separator
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Fri, 12 Feb 2010 23:19:46 +0000
(
00:19
+0100)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:26:30 +0000
(11:26 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 2e9ac62659cc46a929f6ddcaf70163594820c2cc..19159bb85f3075c7a8ced4f5824eedd2368b67ec 100755
(executable)
--- 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'-', u
title)
return utitle.replace(unicode(os.sep), u'%')
class DownloadError(Exception):