#!/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

livestreamer --http-header Client-ID=ewvlchtxgqq88ru9gmfp1gmyt6h2b93 "twitch.tv/$1"  "$resolution"

#!/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"

Move from livestreamer to streamlink
Move from livestreamer to streamlink

Signed-off-by: Severin Kaderli <53409455a0a83258fb3e9e48d59c27be0fc75f36@gmail.com>
