From: Pierre Rudloff Date: Thu, 3 Oct 2013 23:12:42 +0000 (+0200) Subject: Use self._download_webpage everywhere X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=73b4fafd82256c66198b1670d1a6dccfaf5f782c;p=youtube-dl.git Use self._download_webpage everywhere --- diff --git a/youtube_dl/extractor/websurg.py b/youtube_dl/extractor/websurg.py index 96a1bb852..7d335d444 100644 --- a/youtube_dl/extractor/websurg.py +++ b/youtube_dl/extractor/websurg.py @@ -36,8 +36,7 @@ class WeBSurgIE(InfoExtractor): request.add_header( 'Content-Type', 'application/x-www-form-urlencoded;charset=utf-8') compat_urllib_request.urlopen(request).info() - request = compat_urllib_request.Request(self._LOGIN_URL) - webpage = compat_urllib_request.urlopen(request).read() + webpage = self._download_webpage(self._LOGIN_URL, '', 'Logging in') if webpage != 'OK': self._downloader.report_error(