svxf at Wed Aug 22 20:15:28 MSK 2018

This commit is contained in:
Andrey Anurin
2018-08-22 20:15:28 +03:00
parent e210e10b8a
commit 63eebae6fd

View File

@@ -22,13 +22,13 @@ function save_stream {
local NAME=$1
if [[ ! -d $NAME ]]; then
echo :(
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"
local CURDATE=$(date +"%Y-%m-%d-%H:%M:%S")
livestreamer "https://twitch.tv/$NAME" -o "$NAME/$CURDATE.mp4"
sleep 30
done
}