mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-06 14:35:32 +02:00
[vimeo] Fix non-ASCII video passwords (2)
This commit is contained in:
parent
852fad922f
commit
0a0110fc6b
@ -228,7 +228,7 @@ def _verify_player_video_password(self, url, video_id):
|
|||||||
password = self._downloader.params.get('videopassword', None)
|
password = self._downloader.params.get('videopassword', None)
|
||||||
if password is None:
|
if password is None:
|
||||||
raise ExtractorError('This video is protected by a password, use the --video-password option')
|
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'
|
pass_url = url + '/check-password'
|
||||||
password_request = compat_urllib_request.Request(pass_url, data)
|
password_request = compat_urllib_request.Request(pass_url, data)
|
||||||
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
password_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
||||||
|
Loading…
Reference in New Issue
Block a user