projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a349873
)
[atresplayer] Fix python3 bug
author
Sergey M․
<dstftw@gmail.com>
Tue, 30 Dec 2014 16:46:23 +0000
(22:46 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 30 Dec 2014 16:46:23 +0000
(22:46 +0600)
youtube_dl/extractor/atresplayer.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/atresplayer.py
b/youtube_dl/extractor/atresplayer.py
index 7e987b2a017f3b780b57b31abb6f95964a6768c5..72e83bfc2c1b4fa45080538e4c87339a7a8c530a 100644
(file)
--- a/
youtube_dl/extractor/atresplayer.py
+++ b/
youtube_dl/extractor/atresplayer.py
@@
-56,7
+56,10
@@
class AtresPlayerIE(InfoExtractor):
self._TIME_API_URL,
video_id, 'Downloading timestamp', fatal=False), 1000, time.time())
timestamp_shifted = compat_str(timestamp + self._TIMESTAMP_SHIFT)
- token = hmac.new(self._MAGIC.encode('utf-8'), episode_id + timestamp_shifted).hexdigest()
+ token = hmac.new(
+ self._MAGIC.encode('ascii'),
+ (episode_id + timestamp_shifted).encode('utf-8')
+ ).hexdigest()
formats = []
for fmt in ['windows', 'android_tablet']: