dotfiles/bin/twitch.sh
Severin Kaderli 6b38dff3f1 Move from livestreamer to streamlink
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2017-02-27 13:21:09 +01:00

20 lines
402 B
Bash
Executable file

#!/bin/bash
#
# This script simply uses livestreamer <http://docs.livestreamer.io/> to
# stream a twitch stream. It's only a little shortcut, so I don't have to
# type so much.
#
# Usage: ./twitch.sh USERNAME [RESOLUTION]
if [[ -z $1 ]]; then
echo "Please enter a username!"
exit 1
fi
if [[ -z $2 ]]; then
resolution="source"
else
resolution="$2"
fi
streamlink "twitch.tv/$1" "$resolution"