mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-04 02:02:52 +08:00
Use unquote_plus to decode video title
This commit is contained in:
parent
583c714fde
commit
ab1f697827
@ -723,7 +723,7 @@ class YoutubeIE(InfoExtractor):
|
|||||||
if mobj is None:
|
if mobj is None:
|
||||||
self._downloader.trouble(u'ERROR: unable to extract video title')
|
self._downloader.trouble(u'ERROR: unable to extract video title')
|
||||||
return
|
return
|
||||||
video_title = urllib.unquote(mobj.group(1))
|
video_title = urllib.unquote_plus(mobj.group(1))
|
||||||
video_title = video_title.decode('utf-8')
|
video_title = video_title.decode('utf-8')
|
||||||
video_title = re.sub(ur'(?u)&(.+?);', self.htmlentity_transform, video_title)
|
video_title = re.sub(ur'(?u)&(.+?);', self.htmlentity_transform, video_title)
|
||||||
video_title = video_title.replace(os.sep, u'%')
|
video_title = video_title.replace(os.sep, u'%')
|
||||||
|
Loading…
Reference in New Issue
Block a user