aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vimeo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-03 21:01:09 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-03 21:01:09 +0600
commit0a0110fc6bbd21850e25541fd0bd4b602ce194e2 (patch)
treece6c79af503a1f4ebbe0c98e0ee25bc81dd2f0cb /youtube_dl/extractor/vimeo.py
parent852fad922ffa931b3c90b0b9fdb2fa1c7f965ab4 (diff)
[vimeo] Fix non-ASCII video passwords (2)
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r--youtube_dl/extractor/vimeo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index cc0d337e8..fa07bd59c 100644
--- a/youtube_dl/extractor/vimeo.py
+++ b/youtube_dl/extractor/vimeo.py
@@ -228,7 +228,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
password = self._downloader.params.get('videopassword', None)
if password is None:
raise ExtractorError('This video is protected by a password, use the --video-password option')
- data = compat_urllib_parse.urlencode({'password': password})
+ data = urlencode_postdata(encode_dict({'password': password}))
pass_url = url + '/check-password'
password_request = compat_urllib_request.Request(pass_url, data)
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded')