1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 21:03:22 +08: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: if mobj is None:
self._downloader.trouble(u'ERROR: unable to extract title') self._downloader.trouble(u'ERROR: unable to extract title')
return 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) video_title = sanitize_title(video_title)
simple_title = _simplify_title(video_title) simple_title = _simplify_title(video_title)