Downloader: Change access_token call to match website

It stopped working, these changes bring it back in line with the website
so it works.
pull/157/head
Mike Lang 5 years ago
parent aa3ca60b73
commit 94d81d708f

@ -16,10 +16,10 @@ def get_master_playlist(channel, session=None):
session = InstrumentedSession()
resp = session.get(
"https://api.twitch.tv/api/channels/{}/access_token.json".format(channel),
params={'as3': 't'},
params={'oauth_token': 'undefined', 'need_https': 'true', 'platform': '_', 'player_type': 'site', 'player_backend': 'mediaplayer'},
headers={
'Accept': 'application/vnd.twitchtv.v3+json',
'Client-ID': 'pwkzresl8kj2rdj6g7bvxl9ys1wly3j',
'Accept': 'application/vnd.twitchtv.v5+json',
'Client-ID': 'kimne78kx3ncx6brgo4mv6wki5h1ko',
},
metric_name='get_access_token',
)

Loading…
Cancel
Save