diff --git a/src/public/Views/admin/api.php b/src/public/Views/admin/api.php index b0359c54..d20da33d 100644 --- a/src/public/Views/admin/api.php +++ b/src/public/Views/admin/api.php @@ -2500,8 +2500,9 @@ if (isset($_SESSION['hash'])) { } if (!$rStreamInfo) { - $rStreamInfo = ServerRepository::probeSource($rServerID, RequestManager::getAll()['url'], (RequestManager::getAll()['user_agent'] ?? null), (RequestManager::getAll()['http_proxy'] ?? null), (RequestManager::getAll()['cookies'] ?? null), (RequestManager::getAll()['headers'] ?? null))['data']; - $rStreamInfo['container'] = $rStreamInfo['format']['format_name']; + $rProbeResult = ServerRepository::probeSource($rServerID, RequestManager::getAll()['url'], (RequestManager::getAll()['user_agent'] ?? null), (RequestManager::getAll()['http_proxy'] ?? null), (RequestManager::getAll()['cookies'] ?? null), (RequestManager::getAll()['headers'] ?? null)); + $rStreamInfo = $rProbeResult['data'] ?? []; + $rStreamInfo['container'] = $rStreamInfo['format']['format_name'] ?? ''; } }