[vimeo] Fix non-ASCII video passwords (2)
authorSergey M․ <dstftw@gmail.com>
Tue, 3 Nov 2015 15:01:09 +0000 (21:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 3 Nov 2015 15:01:09 +0000 (21:01 +0600)
youtube_dl/extractor/vimeo.py

index cc0d337e8288db3a8414a81096641d48a74f6a26..fa07bd59c6ae87ee6af38248ea2eeb6fe107236e 100644 (file)
@@ -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')