feat: add ability to read args from stdin
feat: refactor to use flags
fix: simplify to just changing to using https to get stream url
Watch twitch like a heathen:
No deps aside standard lib.
go install .
To open a stream to view using mpv
:
mpv `witcht [CHANNEL NAME]`
Defaults to 480p if you want a higher quality (such as 720p60
):
mpv `witcht [CHANNEL NAME]:[QUALITY]`
For a provided list of channels will print if live, stream title and the stream category/game
witcht [LIST OF CHANNEL NAMES]
Big shout out to twire providing a solid reference for this.