1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Use self._download_webpage everywhere

This commit is contained in:
Pierre Rudloff 2013-10-04 01:12:42 +02:00
parent b039775057
commit 73b4fafd82

View file

@ -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(