mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[vimeo] Fix logging in python 3.x
The POST data must be a bytes object.
This commit is contained in:
parent
4b10aadffc
commit
a980bc4324
1 changed files with 8 additions and 6 deletions
|
@ -17,6 +17,7 @@
|
|||
RegexNotFoundError,
|
||||
std_headers,
|
||||
unsmuggle_url,
|
||||
urlencode_postdata,
|
||||
)
|
||||
|
||||
|
||||
|
@ -119,7 +120,8 @@ def _login(self):
|
|||
login_url = 'https://vimeo.com/log_in'
|
||||
webpage = self._download_webpage(login_url, None, False)
|
||||
token = self._search_regex(r'xsrft: \'(.*?)\'', webpage, 'login token')
|
||||
data = compat_urllib_parse.urlencode({'email': username,
|
||||
data = urlencode_postdata({
|
||||
'email': username,
|
||||
'password': password,
|
||||
'action': 'login',
|
||||
'service': 'vimeo',
|
||||
|
|
Loading…
Reference in a new issue