diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:54:39 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:54:39 +0600 |
commit | de195c23a6837d1526198320561feba74886b9df (patch) | |
tree | 5e6b5ca3c474438a3b3224ad4fdf366961c099d5 | |
parent | 2688176c776a2d80c6a4ba85f6e2d07dfd8dba24 (diff) |
[vimeo] Use `_form_hidden_inputs`
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index cae90205d..d63c03183 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -452,11 +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 = dict(re.findall(r'''(?x)<input\s+ - type="hidden"\s+ - name="([^"]+)"\s+ - value="([^"]*)" - ''', login_form)) + fields = self._form_hidden_inputs(login_form) token = self._search_regex(r'xsrft[\s=:"\']+([^"\']+)', webpage, 'login token') fields['token'] = token fields['password'] = password |