youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit de195c23a6837d1526198320561feba74886b9df
parent 2688176c776a2d80c6a4ba85f6e2d07dfd8dba24
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 10 Jul 2015 21:54:39 +0600

[vimeo] Use `_form_hidden_inputs`

Diffstat:
Myoutube_dl/extractor/vimeo.py | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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