aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-04-25 13:19:03 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-04-25 13:19:03 +0200
commitaa92f063086bcc5b4d8606dc549c1fae5be9a525 (patch)
treeee35811a1f042732f78ed365ff6db737c9c240f4
parente00c9cf5995fccd0c6be21757325ce0bd9ba68f8 (diff)
downloadyoutube-dl-aa92f063086bcc5b4d8606dc549c1fae5be9a525.tar.xz
[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.
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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'_'