mirror of
https://source.netsyms.com/Mirrors/youtube-dl
synced 2024-11-03 03:40:20 +00:00
[vk] Modernize
This commit is contained in:
parent
75ca6bcee2
commit
f2bb8c036a
@ -217,11 +217,10 @@ class VKIE(InfoExtractor):
|
|||||||
value, domain = remixlhk.groups()
|
value, domain = remixlhk.groups()
|
||||||
self._set_cookie(domain, 'remixlhk', value)
|
self._set_cookie(domain, 'remixlhk', value)
|
||||||
|
|
||||||
request = sanitized_Request(
|
|
||||||
'https://login.vk.com/?act=login',
|
|
||||||
urlencode_postdata(login_form))
|
|
||||||
login_page = self._download_webpage(
|
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):
|
if re.search(r'onLoginFailed', login_page):
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
|
Loading…
Reference in New Issue
Block a user