projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f943c7b
)
[motorsport] Fix on Python 3
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 4 Apr 2014 21:06:27 +0000
(23:06 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 4 Apr 2014 21:06:27 +0000
(23:06 +0200)
youtube_dl/extractor/motorsport.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/motorsport.py
b/youtube_dl/extractor/motorsport.py
index dc727be10eb20a66d4a9b1d39292062d61c9b516..7c0ec6a127e97dca1068db9db740954e851a8447 100644
(file)
--- a/
youtube_dl/extractor/motorsport.py
+++ b/
youtube_dl/extractor/motorsport.py
@@
-44,7
+44,7
@@
class MotorsportIE(InfoExtractor):
e = compat_str(int(time.time()) + 24 * 60 * 60)
base_video_url = params['location'] + '?e=' + e
s = 'h3hg713fh32'
- h = hashlib.md5(
s + base_video_url
).hexdigest()
+ h = hashlib.md5(
(s + base_video_url).encode('utf-8')
).hexdigest()
video_url = base_video_url + '&h=' + h
uploader = self._html_search_regex(