]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[vimeo] Fix extraction of password protected videos (fixes #7169)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 14 Oct 2015 11:41:39 +0000 (13:41 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 14 Oct 2015 11:41:39 +0000 (13:41 +0200)
youtube_dl/extractor/vimeo.py

index 027f47ee3dd564150692de9a73dbf4f830933242..fa1b2204946a25f9cd2fb80ee4c7e2cf90779048 100644 (file)
@@ -212,7 +212,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_v=1; vuid=%s' % vuid)
+        password_request.add_header('Cookie', 'clip_test2=1; vuid=%s' % vuid)
         password_request.add_header('Referer', url)
         return self._download_webpage(
             password_request, video_id,