[youtube] Don't call 'unquote_plus' on the video title (fixes #2799)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 25 Apr 2014 11:19:03 +0000 (13:19 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 25 Apr 2014 11:19:03 +0000 (13:19 +0200)
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

index 039c10dd39350a365b66bc422840b9b49d865ff6..c008ed54a17df38b1a8b1d457292c8c25e70e012 100644 (file)
@@ -1117,7 +1117,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
 
         # 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'_'