youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 62b013df0dcb5f902d745b77b3de62b64b828863
parent fad6768bd1a67dccbb153ac371d3e82575321ea9
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 21 Feb 2015 18:31:10 +0600

[vimeo] Encode password before hash calculation

Diffstat:
Myoutube_dl/extractor/vimeo.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py @@ -228,7 +228,8 @@ class VimeoIE(VimeoBaseInfoExtractor, SubtitlesInfoExtractor): 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)