0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-03 23:25:06 +00:00

[motorsport] Fix on Python 3

This commit is contained in:
Philipp Hagemeister 2014-04-04 23:06:27 +02:00
parent f943c7b622
commit 7d1b527ff9

View file

@ -44,7 +44,7 @@ def _real_extract(self, url):
e = compat_str(int(time.time()) + 24 * 60 * 60) e = compat_str(int(time.time()) + 24 * 60 * 60)
base_video_url = params['location'] + '?e=' + e base_video_url = params['location'] + '?e=' + e
s = 'h3hg713fh32' 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 video_url = base_video_url + '&h=' + h
uploader = self._html_search_regex( uploader = self._html_search_regex(