Comment the scripts in system/bin

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-13 21:54:40 +01:00
parent 09d9f2c1c8
commit e405bbcd89
7 changed files with 94 additions and 21 deletions

View file

@ -1,11 +1,17 @@
#!/bin/bash
#
# SCRIPT NAME:
# twitch.sh
#
# 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.
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# Usage: ./twitch.sh USERNAME [RESOLUTION]
# DESCRIPTION:
# This script loads a Twitch livestream in a local video player
# using streamlink.
#
# USAGE:
# ./twitch.sh USERNAME [RESOLUTION]
if [[ -z $1 ]]; then
echo "Please enter a username!"
exit 1
@ -14,7 +20,7 @@ fi
if [[ -z $2 ]]; then
resolution="best"
else
resolution="$2"
resolution="${2}"
fi
streamlink -v -l debug "twitch.tv/$1" "$resolution"
streamlink "https://twitch.tv/${1}" "${resolution}"