1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 19:52:11 +00:00

Fix: unescape() cannot work on an utf8 string, send him an ascii one

This commit is contained in:
Laurent Raufaste 2011-12-22 09:10:35 -05:00
parent d6639d05c2
commit 3a5d3e034e

View file

@ -1635,7 +1635,7 @@ class DailymotionIE(InfoExtractor):
if mobj is None:
self._downloader.trouble(u'ERROR: unable to extract title')
return
video_title = htmlParser.unescape(mobj.group('title')).decode('utf-8')
video_title = htmlParser.unescape(mobj.group('title').decode('utf-8'))
video_title = sanitize_title(video_title)
simple_title = _simplify_title(video_title)