Browse Source

[vk] Use `_form_hidden_inputs` when logging in

totalwebcasting
Sergey M․ 10 years ago
parent
commit
a5839317aa
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      youtube_dl/extractor/vk.py

+ 1
- 3
youtube_dl/extractor/vk.py View File

@ -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'),


Loading…
Cancel
Save