mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
Use self._download_webpage everywhere
This commit is contained in:
parent
b039775057
commit
73b4fafd82
1 changed files with 1 additions and 2 deletions
|
@ -36,8 +36,7 @@ def _real_initialize(self):
|
||||||
request.add_header(
|
request.add_header(
|
||||||
'Content-Type', 'application/x-www-form-urlencoded;charset=utf-8')
|
'Content-Type', 'application/x-www-form-urlencoded;charset=utf-8')
|
||||||
compat_urllib_request.urlopen(request).info()
|
compat_urllib_request.urlopen(request).info()
|
||||||
request = compat_urllib_request.Request(self._LOGIN_URL)
|
webpage = self._download_webpage(self._LOGIN_URL, '', 'Logging in')
|
||||||
webpage = compat_urllib_request.urlopen(request).read()
|
|
||||||
|
|
||||||
if webpage != 'OK':
|
if webpage != 'OK':
|
||||||
self._downloader.report_error(
|
self._downloader.report_error(
|
||||||
|
|
Loading…
Reference in a new issue