projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e20c7
)
Replace the directory separator in title
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Tue, 22 Jul 2008 09:05:22 +0000
(11:05 +0200)
committer
Ricardo Garcia
<devnull@localhost>
Tue, 22 Jul 2008 09:05:22 +0000
(11:05 +0200)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 814e1b68b33ff285efba820ee4a34313b4593a88..320248764ec8960bb5add5873f42a3c3e6685ca7 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-430,6
+430,7
@@
class YoutubeIE(InfoExtractor):
return [None]
video_title = mobj.group(1).decode('utf-8')
video_title = re.sub(ur'(?u)&(.+?);', lambda x: unichr(htmlentitydefs.name2codepoint[x.group(1)]), video_title)
+ video_title = video_title.replace(os.sep, u'%')
# simplified title
simple_title = re.sub(ur'(?u)([^%s]+)' % simple_title_chars, ur'_', video_title)