Browse Source
[vimeo] Pass Referer for check-password request
master
Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
2 additions and
2 deletions
-
youtube_dl/extractor/vimeo.py
|
|
@ -282,10 +282,10 @@ class VimeoIE(VimeoBaseInfoExtractor): |
|
|
|
pass_url = url + '/check-password' |
|
|
|
password_request = sanitized_Request(pass_url, data) |
|
|
|
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded') |
|
|
|
password_request.add_header('Referer', url) |
|
|
|
return self._download_json( |
|
|
|
password_request, video_id, |
|
|
|
'Verifying the password', |
|
|
|
'Wrong password') |
|
|
|
'Verifying the password', 'Wrong password') |
|
|
|
|
|
|
|
def _real_initialize(self): |
|
|
|
self._login() |
|
|
|