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}"
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user