svxf at Wed Aug 22 20:10:30 MSK 2018

This commit is contained in:
Andrey Anurin
2018-08-22 20:10:30 +03:00
parent df36dee94d
commit e210e10b8a
2 changed files with 22 additions and 4 deletions

View File

@@ -16,6 +16,24 @@ function twitch {
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_PRELUDE