Replace the directory separator in title
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 22 Jul 2008 09:05:22 +0000 (11:05 +0200)
committerRicardo Garcia <devnull@localhost>
Tue, 22 Jul 2008 09:05:22 +0000 (11:05 +0200)
youtube-dl

index 814e1b68b33ff285efba820ee4a34313b4593a88..320248764ec8960bb5add5873f42a3c3e6685ca7 100755 (executable)
@@ -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)