forked from minhngoc25a/yt-dlc
[vimeo] Fix non-ASCII login
This commit is contained in:
parent
0a0110fc6b
commit
3fa3ff1bc3
|
@ -41,13 +41,13 @@ class VimeoBaseInfoExtractor(InfoExtractor):
|
||||||
self.report_login()
|
self.report_login()
|
||||||
webpage = self._download_webpage(self._LOGIN_URL, None, False)
|
webpage = self._download_webpage(self._LOGIN_URL, None, False)
|
||||||
token, vuid = self._extract_xsrft_and_vuid(webpage)
|
token, vuid = self._extract_xsrft_and_vuid(webpage)
|
||||||
data = urlencode_postdata({
|
data = urlencode_postdata(encode_dict({
|
||||||
'action': 'login',
|
'action': 'login',
|
||||||
'email': username,
|
'email': username,
|
||||||
'password': password,
|
'password': password,
|
||||||
'service': 'vimeo',
|
'service': 'vimeo',
|
||||||
'token': token,
|
'token': token,
|
||||||
})
|
}))
|
||||||
login_request = compat_urllib_request.Request(self._LOGIN_URL, data)
|
login_request = compat_urllib_request.Request(self._LOGIN_URL, data)
|
||||||
login_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
login_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
||||||
login_request.add_header('Cookie', 'vuid=%s' % vuid)
|
login_request.add_header('Cookie', 'vuid=%s' % vuid)
|
||||||
|
|
Loading…
Reference in New Issue