From 79c2676807661d126af28df0c6f5f478150a5a4a Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 8 Nov 2019 11:30:56 -0800 Subject: [PATCH] Change auth token params to match website --- downloader/downloader/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader/downloader/twitch.py b/downloader/downloader/twitch.py index ba1b266..eb6cecc 100644 --- a/downloader/downloader/twitch.py +++ b/downloader/downloader/twitch.py @@ -16,7 +16,7 @@ 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.v5+json', 'Client-ID': 'pwkzresl8kj2rdj6g7bvxl9ys1wly3j',