1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[vimeo] Encode password before hash calculation

This commit is contained in:
Sergey M․ 2015-02-21 18:31:10 +06:00
parent fad6768bd1
commit 62b013df0d

View file

@ -228,7 +228,8 @@ class VimeoIE(VimeoBaseInfoExtractor, SubtitlesInfoExtractor):
password = self._downloader.params.get('videopassword', None) password = self._downloader.params.get('videopassword', None)
if password: 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 # Retrieve video webpage to extract further information
request = compat_urllib_request.Request(url, None, headers) request = compat_urllib_request.Request(url, None, headers)