aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-23 04:18:43 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-23 04:18:43 +0700
commitf2bb8c036a0b1feab726321bd877544cb973d7cc (patch)
tree7c8999e669da2efe691088d0a463ec9af33c1ced /youtube_dl
parent75ca6bcee2466cb9ca3dc4d1ca35b56a59f6cc4d (diff)
[vk] Modernize
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vk.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py
index 4e8ec0f86..f8d07beaf 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(