aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vimeo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-03 20:53:17 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-03 20:53:17 +0600
commit852fad922ffa931b3c90b0b9fdb2fa1c7f965ab4 (patch)
treebb24d9331e6bff7040a8f15c2dae2b6e0e4a1d6e /youtube_dl/extractor/vimeo.py
parenta230068ff7427c19e29331fc0f2bb17d50003bca (diff)
downloadyoutube-dl-852fad922ffa931b3c90b0b9fdb2fa1c7f965ab4.tar.xz
[vimeo] Fix non-ASCII video passwords (Closes #7352)
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r--youtube_dl/extractor/vimeo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index 2437ae1eb..cc0d337e8 100644
--- a/youtube_dl/extractor/vimeo.py
+++ b/youtube_dl/extractor/vimeo.py
@@ -13,6 +13,7 @@ from ..compat import (
compat_urlparse,
)
from ..utils import (
+ encode_dict,
ExtractorError,
InAdvancePagedList,
int_or_none,
@@ -208,10 +209,10 @@ class VimeoIE(VimeoBaseInfoExtractor):
if password is None:
raise ExtractorError('This video is protected by a password, use the --video-password option', expected=True)
token, vuid = self._extract_xsrft_and_vuid(webpage)
- data = urlencode_postdata({
+ data = urlencode_postdata(encode_dict({
'password': password,
'token': token,
- })
+ }))
if url.startswith('http://'):
# vimeo only supports https now, but the user can give an http url
url = url.replace('http://', 'https://')