aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-02-21 18:31:10 +0600
committerSergey M․ <dstftw@gmail.com>2015-02-21 18:31:10 +0600
commit62b013df0dcb5f902d745b77b3de62b64b828863 (patch)
tree5afb09f3ddde8d9c56d5f187caa6b756dae18ac6 /youtube_dl/extractor
parentfad6768bd1a67dccbb153ac371d3e82575321ea9 (diff)
[vimeo] Encode password before hash calculation
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/vimeo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index 5f8649e35..4cd2f73d9 100644
--- 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)