|
|
@ -17,6 +17,7 @@ from ..utils import (
|
|
|
|
RegexNotFoundError,
|
|
|
|
RegexNotFoundError,
|
|
|
|
std_headers,
|
|
|
|
std_headers,
|
|
|
|
unsmuggle_url,
|
|
|
|
unsmuggle_url,
|
|
|
|
|
|
|
|
urlencode_postdata,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -119,7 +120,8 @@ class VimeoIE(SubtitlesInfoExtractor):
|
|
|
|
login_url = 'https://vimeo.com/log_in'
|
|
|
|
login_url = 'https://vimeo.com/log_in'
|
|
|
|
webpage = self._download_webpage(login_url, None, False)
|
|
|
|
webpage = self._download_webpage(login_url, None, False)
|
|
|
|
token = self._search_regex(r'xsrft: \'(.*?)\'', webpage, 'login token')
|
|
|
|
token = self._search_regex(r'xsrft: \'(.*?)\'', webpage, 'login token')
|
|
|
|
data = compat_urllib_parse.urlencode({'email': username,
|
|
|
|
data = urlencode_postdata({
|
|
|
|
|
|
|
|
'email': username,
|
|
|
|
'password': password,
|
|
|
|
'password': password,
|
|
|
|
'action': 'login',
|
|
|
|
'action': 'login',
|
|
|
|
'service': 'vimeo',
|
|
|
|
'service': 'vimeo',
|
|
|
|