From: Ricardo Garcia Date: Tue, 22 Jul 2008 09:05:22 +0000 (+0200) Subject: Replace the directory separator in title X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=98a1fe038c3aa1009e0b91a32cd0bb5e3d658f84;p=youtube-dl Replace the directory separator in title --- diff --git a/youtube-dl b/youtube-dl index 814e1b68b..320248764 100755 --- 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)