mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-06-05 22:09:18 +02:00 
			
		
		
		
	[youtube] Don't call 'unquote_plus' on the video title (fixes #2799)
It's already unquoted after calling 'compat_parse_qs'. It replaced '+' with spaces, for example in https://www.youtube.com/watch?v=XC0b5YexO-I.
This commit is contained in:
		| @@ -1117,7 +1117,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): | |||||||
|  |  | ||||||
|         # title |         # title | ||||||
|         if 'title' in video_info: |         if 'title' in video_info: | ||||||
|             video_title = compat_urllib_parse.unquote_plus(video_info['title'][0]) |             video_title = video_info['title'][0] | ||||||
|         else: |         else: | ||||||
|             self._downloader.report_warning(u'Unable to extract video title') |             self._downloader.report_warning(u'Unable to extract video title') | ||||||
|             video_title = u'_' |             video_title = u'_' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user