Browse Source

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

totalwebcasting
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
1f36085df9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/vimeo.py

+ 1
- 1
youtube_dl/extractor/vimeo.py View 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,


Loading…
Cancel
Save