From f2bb8c036a0b1feab726321bd877544cb973d7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 23 Jun 2016 04:18:43 +0700 Subject: [PATCH] [vk] Modernize --- youtube_dl/extractor/vk.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index 4e8ec0f86f..f8d07beaf9 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -217,11 +217,10 @@ class VKIE(InfoExtractor): 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(