mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[vimeo] Encode password before hash calculation
This commit is contained in:
parent
fad6768bd1
commit
62b013df0d
1 changed files with 2 additions and 1 deletions
|
@ -228,7 +228,8 @@ def _real_extract(self, url):
|
|||
|
||||
password = self._downloader.params.get('videopassword', None)
|
||||
if password:
|
||||
headers['Cookie'] = '%s_password=%s' % (video_id, hashlib.md5(password).hexdigest())
|
||||
headers['Cookie'] = '%s_password=%s' % (
|
||||
video_id, hashlib.md5(password.encode('utf-8')).hexdigest())
|
||||
|
||||
# Retrieve video webpage to extract further information
|
||||
request = compat_urllib_request.Request(url, None, headers)
|
||||
|
|
Loading…
Reference in a new issue