mirror of
https://github.com/notwa/rc
synced 2024-11-05 02:29:06 -08:00
add back livestreamer stuff for now
This commit is contained in:
parent
abca7f0dba
commit
9f1b1adfa3
1 changed files with 14 additions and 0 deletions
|
@ -46,6 +46,20 @@ watchstream() {
|
|||
fi
|
||||
}
|
||||
|
||||
watchstream2() {
|
||||
local url="$1"
|
||||
shift
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
# zsh syntax
|
||||
livestreamer "$url" "$@" -p mpv $=LIVESTREAMER_FLAGS -a \
|
||||
"$MPV_STREAM_FLAGS {filename}"
|
||||
else
|
||||
# bash syntax
|
||||
livestreamer "$url" "$@" -p mpv $LIVESTREAMER_FLAGS -a \
|
||||
"$MPV_STREAM_FLAGS {filename}"
|
||||
fi
|
||||
}
|
||||
|
||||
twitch() {
|
||||
local user="$1"
|
||||
shift
|
||||
|
|
Loading…
Reference in a new issue