[extractor/common] Improve _form_hidden_inputs and rename to _hidden_inputs
This commit is contained in:
parent
9750e7d70e
commit
f8da79f828
11 changed files with 21 additions and 14 deletions
|
@ -452,7 +452,7 @@ class VimeoChannelIE(InfoExtractor):
|
|||
password = self._downloader.params.get('videopassword', None)
|
||||
if password is None:
|
||||
raise ExtractorError('This album is protected by a password, use the --video-password option', expected=True)
|
||||
fields = self._form_hidden_inputs(login_form)
|
||||
fields = self._hidden_inputs(login_form)
|
||||
token = self._search_regex(r'xsrft[\s=:"\']+([^"\']+)', webpage, 'login token')
|
||||
fields['token'] = token
|
||||
fields['password'] = password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue