1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 10:53:23 -07:00

add back livestreamer stuff for now

This commit is contained in:
Connor Olding 2016-01-29 10:30:21 -08:00
parent abca7f0dba
commit 9f1b1adfa3

View File

@ -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