mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Use _download_webpage in MetacafeIE
This commit is contained in:
parent
c8056d866a
commit
089e843b0f
1 changed files with 1 additions and 6 deletions
|
@ -732,12 +732,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
# Retrieve video webpage to extract further information
|
# Retrieve video webpage to extract further information
|
||||||
request = compat_urllib_request.Request('http://www.metacafe.com/watch/%s/' % video_id)
|
request = compat_urllib_request.Request('http://www.metacafe.com/watch/%s/' % video_id)
|
||||||
try:
|
webpage = self._download_webpage(request, video_id)
|
||||||
self.report_download_webpage(video_id)
|
|
||||||
webpage = compat_urllib_request.urlopen(request).read()
|
|
||||||
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
|
|
||||||
self._downloader.report_error(u'unable retrieve video webpage: %s' % compat_str(err))
|
|
||||||
return
|
|
||||||
|
|
||||||
# Extract URL, uploader and title from webpage
|
# Extract URL, uploader and title from webpage
|
||||||
self.report_extraction(video_id)
|
self.report_extraction(video_id)
|
||||||
|
|
Loading…
Reference in a new issue