mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 18:22:51 +08:00
Fix: unescape() cannot work on an utf8 string, send him an ascii one
This commit is contained in:
parent
d6639d05c2
commit
3a5d3e034e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user