aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/websurg.py
diff options
context:
space:
mode:
authorPierre Rudloff <contact@rudloff.pro>2013-10-04 01:12:42 +0200
committerPierre Rudloff <contact@rudloff.pro>2013-10-04 01:12:42 +0200
commit73b4fafd82256c66198b1670d1a6dccfaf5f782c (patch)
tree488a2c5566ae873ad24557c71a82acfa0d673f26 /youtube_dl/extractor/websurg.py
parentb039775057abf6005ceef2819a746c9f3b671cd3 (diff)
Use self._download_webpage everywhere
Diffstat (limited to 'youtube_dl/extractor/websurg.py')
-rw-r--r--youtube_dl/extractor/websurg.py3
1 files changed, 1 insertions, 2 deletions
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(