1
0
Fork 0

expand time then offline message not aviable

This commit is contained in:
Christopher Latza 2020-06-15 18:46:16 +02:00
parent 3546f779b7
commit 1e3666a27d
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,7 @@ while(TRUE)
echo "Sending start info to discord...";
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
echo "done.\n";
$lastOnlineTime = time();
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
@ -62,6 +62,8 @@ while(TRUE)
echo "Sending end info to discord...";
$result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions));
echo "done.\n";
}else{
$lastOnlineTime = $lastOnlineTime - 3600;
}
}else{
echo "ERROR: Image not generated!\n";