diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:52:03 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:52:03 +0600 |
commit | a5839317aa5b41e7bc99ecae7405459bbcbff8a7 (patch) | |
tree | d0a4ce4c2a579aa7a5361a96e02fe95d9940c5a2 /youtube_dl/extractor/vk.py | |
parent | a0aab26a414e8424e852a361c1822739f6bc936c (diff) |
[vk] Use `_form_hidden_inputs` when logging in
Diffstat (limited to 'youtube_dl/extractor/vk.py')
-rw-r--r-- | youtube_dl/extractor/vk.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index 23d153031..c0292095b 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -154,9 +154,7 @@ class VKIE(InfoExtractor): login_page = self._download_webpage( 'https://vk.com', None, 'Downloading login page') - login_form = dict(re.findall( - r'<input\s+type="hidden"\s+name="([^"]+)"\s+(?:id="[^"]+"\s+)?value="([^"]*)"', - login_page)) + login_form = self._form_hidden_inputs(login_page) login_form.update({ 'email': username.encode('cp1251'), |