aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vimeo.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-06-25 22:22:32 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-06-25 22:22:32 +0200
commitc6c19746722e5ef43375f9be0d4de30648697643 (patch)
tree9cd7c159f7b02603f83d3cbb4353e514e7b8a4c9 /youtube_dl/extractor/vimeo.py
parenta545d1d2625081ab92a5223efdd42c1fddb87b58 (diff)
downloadyoutube-dl-c6c19746722e5ef43375f9be0d4de30648697643.tar.xz
Add "--video-password" option (related #889)
Used only for accessing a private video Restore the error when the account is missing
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r--youtube_dl/extractor/vimeo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index 677cf4e1c..20dc255d4 100644
--- a/youtube_dl/extractor/vimeo.py
+++ b/youtube_dl/extractor/vimeo.py
@@ -20,9 +20,9 @@ class VimeoIE(InfoExtractor):
IE_NAME = u'vimeo'
def _verify_video_password(self, url, video_id, webpage):
- password = self._downloader.params.get('password', None)
+ password = self._downloader.params.get('videopassword', None)
if password is None:
- raise ExtractorError(u'This video is protected by a password, use the --password option')
+ raise ExtractorError(u'This video is protected by a password, use the --video-password option')
token = re.search(r'xsrft: \'(.*?)\'', webpage).group(1)
data = compat_urllib_parse.urlencode({'password': password,
'token': token})