projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad6768
)
[vimeo] Encode password before hash calculation
author
Sergey M․
<dstftw@gmail.com>
Sat, 21 Feb 2015 12:31:10 +0000
(18:31 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 21 Feb 2015 12:31:10 +0000
(18:31 +0600)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index 5f8649e35573f823c0524b7dbd6c2783d09f40e2..4cd2f73d9962529db31e259011db9ccbfe053ac4 100644
(file)
--- 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)