projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b039775
)
Use self._download_webpage everywhere
author
Pierre Rudloff
<contact@rudloff.pro>
Thu, 3 Oct 2013 23:12:42 +0000
(
01:12
+0200)
committer
Pierre Rudloff
<contact@rudloff.pro>
Thu, 3 Oct 2013 23:12:42 +0000
(
01:12
+0200)
youtube_dl/extractor/websurg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/websurg.py
b/youtube_dl/extractor/websurg.py
index 96a1bb852a01e9026f531f5806027dfc5de55930..7d335d444e5231df69e1282490dd3d2212411f93 100644
(file)
--- 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(