From aa92f063086bcc5b4d8606dc549c1fae5be9a525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Fri, 25 Apr 2014 13:19:03 +0200 Subject: [PATCH] [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. --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 039c10dd3..c008ed54a 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1117,7 +1117,7 @@ def _real_extract(self, url): # title if 'title' in video_info: - video_title = compat_urllib_parse.unquote_plus(video_info['title'][0]) + video_title = video_info['title'][0] else: self._downloader.report_warning(u'Unable to extract video title') video_title = u'_'