[abc.net.au:iview] python3 fix
This commit is contained in:
parent
1bd6474022
commit
58baa2935d
@ -133,8 +133,8 @@ class ABCIViewIE(InfoExtractor):
|
|||||||
time_str = str(int(time.time()))
|
time_str = str(int(time.time()))
|
||||||
house_number = video_params.get('episodeHouseNumber')
|
house_number = video_params.get('episodeHouseNumber')
|
||||||
path = '/auth/hls/sign?ts={0}&hn={1}&d=android-mobile'.format(
|
path = '/auth/hls/sign?ts={0}&hn={1}&d=android-mobile'.format(
|
||||||
time_str, house_number).encode('utf-8')
|
time_str, house_number)
|
||||||
sig = hmac.new(key, path, hashlib.sha256).hexdigest()
|
sig = hmac.new(key, path.encode('utf-8'), hashlib.sha256).hexdigest()
|
||||||
auth_url = 'http://iview.abc.net.au{0}&sig={1}'.format(path, sig)
|
auth_url = 'http://iview.abc.net.au{0}&sig={1}'.format(path, sig)
|
||||||
token = self._download_webpage(auth_url, video_id)
|
token = self._download_webpage(auth_url, video_id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user