Hello friends, how are you?
I made a short php script to update streams and source names on sql for XC, the problem which i have discovered is that the changes that i have made do not appear on the moment when i update the information. If you try to see the changes in the api system, you would not see it, also if you restart the stream using the api. After passes more or less 20 minutes, you can see the changes.
I suppose that this happens because restarting streams with the api is the incorrect way to do it. I remember when Xtream Codes was working, if you updated the stream information, the panel asked you to restart the stream to see the changes on the servers, perhaps the Xtream Codes panel was using another way to refresh the streams.
Does anyone know how to restart or update the stream information correctly?
My code:
I made a short php script to update streams and source names on sql for XC, the problem which i have discovered is that the changes that i have made do not appear on the moment when i update the information. If you try to see the changes in the api system, you would not see it, also if you restart the stream using the api. After passes more or less 20 minutes, you can see the changes.
I suppose that this happens because restarting streams with the api is the incorrect way to do it. I remember when Xtream Codes was working, if you updated the stream information, the panel asked you to restart the stream to see the changes on the servers, perhaps the Xtream Codes panel was using another way to refresh the streams.
Does anyone know how to restart or update the stream information correctly?
My code:
PHP:
$sql = "UPDATE streams
SET stream_source = 'new url of the stream'
WHERE id = 6;";
if ($link->query($sql) === TRUE) {
echo "Record updated successfully";
} else {
echo "Error updating record: " . $link->error;
}