mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-21 10:33:44 +01:00
add playtwitch script
This commit is contained in:
parent
65f7f34f69
commit
ff5490d490
1 changed files with 18 additions and 0 deletions
18
scripts/playtwitch
Executable file
18
scripts/playtwitch
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
# play a twitch stream using streamlink
|
||||
|
||||
__usage="
|
||||
USAGE:
|
||||
$0 <stream_name> [quality]
|
||||
|
||||
ARGS:
|
||||
<stream_name> Name of the stream to play
|
||||
[quality] quality to use [default: best]
|
||||
"
|
||||
|
||||
if [ -z $1 ] || [ $# -gt 2 ] || [ $1 = "--help" ]; then
|
||||
echo -e "$__usage"
|
||||
else
|
||||
streamlink https://twitch.tv/$1 ${2:-best}
|
||||
fi
|
Loading…
Reference in a new issue