1
0
Fork 0

„start.php“ ändern

This commit is contained in:
Christopher 2020-06-15 16:29:14 +00:00
parent cabf418425
commit d3821293c5
1 changed files with 7 additions and 4 deletions

View File

@ -55,10 +55,13 @@ while(TRUE)
echo "done.\n";
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
echo "Sending end info to discord...";
$result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions));
echo "done.\n";
if(($lastOnlineTime + 60) < time())
{
echo "Sending end info to discord...";
$result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions));
echo "done.\n";
}
}else{
echo "ERROR: Image not generated!\n";
}