Skip to content

Instantly share code, notes, and snippets.

local json = require("dkjson")
local client = "jzkbprff40iqj646a697cyrvl0zt2m6"
local urls = {
vod = {
token = "${scheme}://api.twitch.tv/api/vods/${user}/access_token?client_id=${client}",
playlist = "${scheme}://usher.ttvnw.net/vod/${user}.m3u8?allow_source=true&allow_spectre=true&type=any&nauth=${token}&nauthsig=${sig}"
},
hls = {
token = "${scheme}://api.twitch.tv/api/channels/${user}/access_token?client_id=${client}",
playlist = "${scheme}://usher.ttvnw.net/api/channel/hls/${user}.m3u8?allow_source=true&allow_spectre=true&type=any&token=${token}&sig=${sig}"
@ste-lam
ste-lam / LICENSE.txt
Last active June 29, 2024 08:10 — forked from 140bytes/LICENSE.txt
base64 encoder w/padding
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE