diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-04-20 11:40:05 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-04-20 11:40:05 +0200 |
commit | 089e843b0f9ae9f99be6406896829dc591f80122 (patch) | |
tree | a20be25748bcb9b8b29ee7401727a96a18e9d8a7 | |
parent | c8056d866aa5522f8caf4a8661c3112888e28ba4 (diff) |
Use _download_webpage in MetacafeIE
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index e0a26eb58..5052f3ec8 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -732,12 +732,7 @@ class MetacafeIE(InfoExtractor): # Retrieve video webpage to extract further information request = compat_urllib_request.Request('http://www.metacafe.com/watch/%s/' % video_id) - try: - 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 + webpage = self._download_webpage(request, video_id) # Extract URL, uploader and title from webpage self.report_extraction(video_id) |