Skip to content

Commit

Permalink
[ie/vimeo] Fix login (#9274)
Browse files Browse the repository at this point in the history
Closes #9273
Authored by: bashonly
  • Loading branch information
bashonly committed Feb 24, 2024
1 parent f3d5fac commit 2e8de09
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions yt_dlp/extractor/vimeo.py
Expand Up @@ -48,17 +48,15 @@ def _unsmuggle_headers(self, url):
return url, data, headers

def _perform_login(self, username, password):
webpage = self._download_webpage(
self._LOGIN_URL, None, 'Downloading login page')
token, vuid = self._extract_xsrft_and_vuid(webpage)
viewer = self._download_json('https://vimeo.com/_next/viewer', None, 'Downloading login token')
data = {
'action': 'login',
'email': username,
'password': password,
'service': 'vimeo',
'token': token,
'token': viewer['xsrft'],
}
self._set_vimeo_cookie('vuid', vuid)
self._set_vimeo_cookie('vuid', viewer['vuid'])
try:
self._download_webpage(
self._LOGIN_URL, None, 'Logging in',
Expand Down

0 comments on commit 2e8de09

Please sign in to comment.