projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09a9fad
)
[vimeo] Pass Referer for check-password request
author
Sergey M․
<dstftw@gmail.com>
Thu, 21 Apr 2016 18:02:39 +0000
(
00:02
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 21 Apr 2016 18:02:39 +0000
(
00:02
+0600)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index a4833a8584b05e65c0058b6212fc3e30fdb16c4a..59f9cb1ae49ab0adb7fcc62ec81b12c30e652b28 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-282,10
+282,10
@@
class VimeoIE(VimeoBaseInfoExtractor):
pass_url = url + '/check-password'
password_request = sanitized_Request(pass_url, data)
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
+ password_request.add_header('Referer', url)
return self._download_json(
password_request, video_id,
- 'Verifying the password',
- 'Wrong password')
+ 'Verifying the password', 'Wrong password')
def _real_initialize(self):
self._login()