This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This code has been modified by FlintTD to function after the deprecation of the Twitch v5 API in 2022. | |
| # The Streamlink implementation has also been updated, due to changes in the Twitch REST API in 2020. | |
| # This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch. | |
| # You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html | |
| # The original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/, which is now lost. | |
| import requests | |
| import os | |
| import time | |
| import json |