projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08df685
)
[vimeo] Fix password protected videos (Closes #6507)
author
Sergey M․
<dstftw@gmail.com>
Sun, 9 Aug 2015 11:10:40 +0000
(17:10 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 9 Aug 2015 11:10:40 +0000
(17:10 +0600)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index 10d6745af703e00d6962d3e14c8b01f2419ad955..4c4e3c72ab7c9cec1105103dfbf912affa33420f 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-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')