[vimeo] Fix password protected videos (Closes #6507)
authorSergey M․ <dstftw@gmail.com>
Sun, 9 Aug 2015 11:10:40 +0000 (17:10 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 9 Aug 2015 11:10:40 +0000 (17:10 +0600)
youtube_dl/extractor/vimeo.py

index 10d6745af703e00d6962d3e14c8b01f2419ad955..4c4e3c72ab7c9cec1105103dfbf912affa33420f 100644 (file)
@@ -203,7 +203,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
             url = url.replace('http://', 'https://')
         password_request = compat_urllib_request.Request(url + '/password', data)
         password_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
-        password_request.add_header('Cookie', 'xsrft=%s' % token)
+        password_request.add_header('Referer', url)
         return self._download_webpage(
             password_request, video_id,
             'Verifying the password', 'Wrong password')