mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -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
|
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() {
|
twitch() {
|
||||||
local user="$1"
|
local user="$1"
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Add table
Reference in a new issue