diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-22 00:02:39 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-22 00:02:39 +0600 |
commit | bdbb8530c7103a47be19b2dd2dfad8bfe9f8fd67 (patch) | |
tree | f5f095f01ad0225f7c3452a2edf9a06c31104b9a | |
parent | 09a9fadb843d55f70724382c6ad6c5a387f52bc3 (diff) |
[vimeo] Pass Referer for check-password request
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index a4833a858..59f9cb1ae 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/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() |