]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vimeo] Fix non-ASCII login
authorSergey M․ <dstftw@gmail.com>
Tue, 3 Nov 2015 15:06:36 +0000 (21:06 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 3 Nov 2015 15:06:36 +0000 (21:06 +0600)
youtube_dl/extractor/vimeo.py

index fa07bd59c6ae87ee6af38248ea2eeb6fe107236e..46fb36f21eebd35a0d599a6a69120883ca6d56e3 100644 (file)
@@ -41,13 +41,13 @@ class VimeoBaseInfoExtractor(InfoExtractor):
         self.report_login()
         webpage = self._download_webpage(self._LOGIN_URL, None, False)
         token, vuid = self._extract_xsrft_and_vuid(webpage)
-        data = urlencode_postdata({
+        data = urlencode_postdata(encode_dict({
             'action': 'login',
             'email': username,
             'password': password,
             'service': 'vimeo',
             'token': token,
-        })
+        }))
         login_request = compat_urllib_request.Request(self._LOGIN_URL, data)
         login_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
         login_request.add_header('Cookie', 'vuid=%s' % vuid)