From 58baa2935d0a39b4e55cf832281bce501cc8a2d1 Mon Sep 17 00:00:00 2001 From: d2au Date: Mon, 20 Nov 2017 12:21:25 +1030 Subject: [PATCH] [abc.net.au:iview] python3 fix --- youtube_dl/extractor/abc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/abc.py b/youtube_dl/extractor/abc.py index 62748ea5c..173055b5a 100644 --- a/youtube_dl/extractor/abc.py +++ b/youtube_dl/extractor/abc.py @@ -133,8 +133,8 @@ class ABCIViewIE(InfoExtractor): time_str = str(int(time.time())) house_number = video_params.get('episodeHouseNumber') path = '/auth/hls/sign?ts={0}&hn={1}&d=android-mobile'.format( - time_str, house_number).encode('utf-8') - sig = hmac.new(key, path, hashlib.sha256).hexdigest() + time_str, house_number) + sig = hmac.new(key, path.encode('utf-8'), hashlib.sha256).hexdigest() auth_url = 'http://iview.abc.net.au{0}&sig={1}'.format(path, sig) token = self._download_webpage(auth_url, video_id)