mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-28 19:03:18 +01:00
fix(api): handle null from probeSource() to prevent array offset on null
This commit is contained in:
@@ -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'] ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user