youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit bdbb8530c7103a47be19b2dd2dfad8bfe9f8fd67
parent 09a9fadb843d55f70724382c6ad6c5a387f52bc3
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 22 Apr 2016 00:02:39 +0600

[vimeo] Pass Referer for check-password request

Diffstat:
Myoutube_dl/extractor/vimeo.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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()