]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[vimeo] Pass Referer for check-password request
authorSergey M․ <dstftw@gmail.com>
Thu, 21 Apr 2016 18:02:39 +0000 (00:02 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 Apr 2016 18:02:39 +0000 (00:02 +0600)
youtube_dl/extractor/vimeo.py

index a4833a8584b05e65c0058b6212fc3e30fdb16c4a..59f9cb1ae49ab0adb7fcc62ec81b12c30e652b28 100644 (file)
@@ -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()