Reroganize repository
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
0a4424d25e
commit
cd781c174e
40 changed files with 113 additions and 22 deletions
20
system/bin/twitch.sh
Executable file
20
system/bin/twitch.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/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="best"
|
||||
else
|
||||
resolution="$2"
|
||||
fi
|
||||
|
||||
streamlink -v -l debug "twitch.tv/$1" "$resolution"
|
Loading…
Add table
Add a link
Reference in a new issue