From 3a5d3e034e8b943e07d66ae9eba179d8c89a834e Mon Sep 17 00:00:00 2001 From: Laurent Raufaste Date: Thu, 22 Dec 2011 09:10:35 -0500 Subject: [PATCH] Fix: unescape() cannot work on an utf8 string, send him an ascii one --- youtube-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-dl b/youtube-dl index 2522e0233..f0e2e33e9 100755 --- a/youtube-dl +++ b/youtube-dl @@ -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)