mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-26 18:57:42 +00:00
[vimeo] Fix non-ASCII video passwords (Closes #7352)
This commit is contained in:
parent
a230068ff7
commit
852fad922f
1 changed files with 3 additions and 2 deletions
|
@ -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://')
|
||||
|
|
Loading…
Reference in a new issue