[vk] Modernize
authorSergey M․ <dstftw@gmail.com>
Wed, 22 Jun 2016 21:18:43 +0000 (04:18 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 22 Jun 2016 21:18:43 +0000 (04:18 +0700)
youtube_dl/extractor/vk.py

index 4e8ec0f86f5d0fed82db08b5798ce5336ee3726d..f8d07beaf994bf841e5c0142604da22384b317ee 100644 (file)
@@ -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(