Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://usher.ttvnw.net/api/channel/hls/runnerguy2489.m3u8
- https://api.twitch.tv/api/channels/runnerguy2489/access_token
- if type == "live":
- endpoint = "channels"
- value = self.channel
- sig, token = self.api.access_token(endpoint, value, schema=_access_token_schema)
- params = {
- "player": "twitchweb",
- "p": int(random() * 999999),
- "type": "any",
- "allow_source": "true",
- "allow_audio_only": "true",
- "allow_spectre": "false",
- "sig": sig,
- "token": token
- }
- streams = HLSStream.parse_variant_playlist(self.session, url, force_restart=not stream_type == "live")
Add Comment
Please, Sign In to add comment