Explorar o código

Replace the directory separator in title

Ricardo Garcia %!s(int64=17) %!d(string=hai) anos
pai
achega
98a1fe038c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      youtube-dl

+ 1 - 0
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)