mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
Fix Escapist IE
This commit is contained in:
parent
1b91a2e2cf
commit
9ab3406ddb
@ -2188,11 +2188,12 @@ def _real_extract(self, url):
|
||||
|
||||
self.report_extraction(showName)
|
||||
try:
|
||||
webPage = urllib2.urlopen(url).read()
|
||||
webPageBytes = urllib2.urlopen(url).read()
|
||||
except (urllib2.URLError, httplib.HTTPException, socket.error), err:
|
||||
self._downloader.trouble(u'ERROR: unable to download webpage: ' + unicode(err))
|
||||
return
|
||||
|
||||
webPage = webPageBytes.decode('utf-8')
|
||||
descMatch = re.search('<meta name="description" content="([^"]*)"', webPage)
|
||||
description = unescapeHTML(descMatch.group(1))
|
||||
imgMatch = re.search('<meta property="og:image" content="([^"]*)"', webPage)
|
||||
|
Loading…
Reference in New Issue
Block a user