[vimeo] Fix password protected videos (Closes #7451)
authorSergey M․ <dstftw@gmail.com>
Wed, 11 Nov 2015 15:21:21 +0000 (21:21 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 11 Nov 2015 15:21:21 +0000 (21:21 +0600)
youtube_dl/extractor/vimeo.py

index ca716c8f530326907986ceb17a427c0b28c1102e..9dc6247e83e5c388eb7984fbe0a38f95addd8a31 100644 (file)
@@ -217,7 +217,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', 'clip_test2=1; vuid=%s' % vuid)
+        password_request.add_header('Cookie', 'clip_test_v2=0; vuid=%s' % vuid)
         password_request.add_header('Referer', url)
         return self._download_webpage(
             password_request, video_id,