]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[vimeo] Fix non-ASCII video passwords (Closes #7352)
authorSergey M․ <dstftw@gmail.com>
Tue, 3 Nov 2015 14:53:17 +0000 (20:53 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 3 Nov 2015 14:53:17 +0000 (20:53 +0600)
youtube_dl/extractor/vimeo.py

index 2437ae1eb2cfafc34441d00a6a5b725e78f7cbb3..cc0d337e8288db3a8414a81096641d48a74f6a26 100644 (file)
@@ -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://')