Get a single m3u8 URL of a Twitch stream. You can then for example use that URL for open-pip.
$ npm install --global twitch-url-cli
You need a Twitch Client ID. See here here how to set up one.
There are 3 possibilities how to set the client id. The app will look for a client id in this order:
$ twitch-url --client-id=abcdefghijklmno12345
$ TWITCH_CLIENT_ID=abcdefghijklmno12345 twitch-url
If you would like to store the client ID permanently.
$ echo "abcdefghijklmno12345" > ~/.twitch-client-id
$ twitch-url --help
Usage
$ twitch-url [channel]
Options
--client-id Twitch API Client ID
Examples
$ twitch-url Sacriel
http://video-edge-c686c4.lhr03.hls.ttvnw.net/v0/....index-live.m3u8
MIT © Jonny Burger