1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[vk] Modernize

This commit is contained in:
Sergey M․ 2016-06-23 04:18:43 +07:00
parent 75ca6bcee2
commit f2bb8c036a
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -217,11 +217,10 @@ def _login(self):
value, domain = remixlhk.groups()
self._set_cookie(domain, 'remixlhk', value)
request = sanitized_Request(
'https://login.vk.com/?act=login',
urlencode_postdata(login_form))
login_page = self._download_webpage(
request, None, note='Logging in as %s' % username)
'https://login.vk.com/?act=login', None,
note='Logging in as %s' % username,
data=urlencode_postdata(login_form))
if re.search(r'onLoginFailed', login_page):
raise ExtractorError(