1
0
mirror of https://gitlab.com/ytdl-org/youtube-dl.git synced 2026-04-24 00:00:07 -04:00

[vk] Use _form_hidden_inputs when logging in

This commit is contained in:
Sergey M․
2015-07-10 21:52:03 +06:00
parent a0aab26a41
commit a5839317aa
+1 -3
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'),