So I started using the API
Made a small script to query with ‘getStreamsObjects’.
As I am a beginning site none of the streams I queried where online. But the API doesn’t seem to handle an empty very well:
$streamsObject = $this->get_iterated($functionName, $url, $options, $limit, $offset, 'streams', null, $hls, null, $channels, $embedable, $client_id);
Unchecked for empty this goes into:
foreach ($streamsObject as $key => $value)
Giving a PHP error
I fixed this by adding:
if(is_array($streamsObject) && count($streamsObject) > 0)
{
Last check prohibits empty array into the foreach