[vimeo] Fix extraction of password protected videos (fixes #7169)

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-10-14 13:41:39 +02:00
parent 26669ea3cf
commit 1f36085df9

View File

@ -212,7 +212,7 @@ def _verify_video_password(self, url, video_id, webpage):
url = url.replace('http://', 'https://') url = url.replace('http://', 'https://')
password_request = compat_urllib_request.Request(url + '/password', data) password_request = compat_urllib_request.Request(url + '/password', data)
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded') 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) password_request.add_header('Referer', url)
return self._download_webpage( return self._download_webpage(
password_request, video_id, password_request, video_id,