1
0
Fork 0
This commit is contained in:
Christopher Latza 2020-06-15 18:35:45 +02:00
parent 619d61b8b4
commit cfd06a31bd
1 changed files with 6 additions and 6 deletions

View File

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