svxf at Wed Aug 22 20:10:30 MSK 2018
This commit is contained in:
@@ -16,6 +16,24 @@ function twitch {
|
|||||||
livestreamer "http://www.twitch.tv/${1}" "${${@:2}:-best}"
|
livestreamer "http://www.twitch.tv/${1}" "${${@:2}:-best}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function save_stream {
|
||||||
|
FUNCTION_PRELUDE
|
||||||
|
|
||||||
|
local NAME=$1
|
||||||
|
|
||||||
|
if [[ ! -d $NAME ]]; then
|
||||||
|
echo :(
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
local DATE=$(date +"%Y-%m-%d-%H:%M:%S")
|
||||||
|
livestreamer "https://twitch.tv/$NAME" -o "$NAME/$DATE.mp4"
|
||||||
|
sleep 30
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function dcp {
|
function dcp {
|
||||||
FUNCTION_PRELUDE
|
FUNCTION_PRELUDE
|
||||||
|
|
||||||
|
@@ -42,10 +42,10 @@ typeset -gU cdpath fpath mailpath path
|
|||||||
# )
|
# )
|
||||||
|
|
||||||
# Set the list of directories that Zsh searches for programs.
|
# Set the list of directories that Zsh searches for programs.
|
||||||
path=(
|
#path=(
|
||||||
/usr/local/{bin,sbin}
|
# /usr/local/{bin,sbin}
|
||||||
$path
|
# $path
|
||||||
)
|
#)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Less
|
# Less
|
||||||
|
Reference in New Issue
Block a user