From: Sergey M․ Date: Thu, 21 Apr 2016 18:02:39 +0000 (+0600) Subject: [vimeo] Pass Referer for check-password request X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=bdbb8530c7103a47be19b2dd2dfad8bfe9f8fd67;p=youtube-dl [vimeo] Pass Referer for check-password request --- 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()