mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	Replace the directory separator in title
This commit is contained in:
		
				
					committed by
					
						 Ricardo Garcia
						Ricardo Garcia
					
				
			
			
				
	
			
			
			
						parent
						
							e8e20c76f2
						
					
				
				
					commit
					98a1fe038c
				
			| @@ -430,6 +430,7 @@ class YoutubeIE(InfoExtractor): | |||||||
| 			return [None] | 			return [None] | ||||||
| 		video_title = mobj.group(1).decode('utf-8') | 		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 = re.sub(ur'(?u)&(.+?);', lambda x: unichr(htmlentitydefs.name2codepoint[x.group(1)]), video_title) | ||||||
|  | 		video_title = video_title.replace(os.sep, u'%') | ||||||
|  |  | ||||||
| 		# simplified title | 		# simplified title | ||||||
| 		simple_title = re.sub(ur'(?u)([^%s]+)' % simple_title_chars, ur'_', video_title) | 		simple_title = re.sub(ur'(?u)([^%s]+)' % simple_title_chars, ur'_', video_title) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user