Improved streams detection

This commit is contained in:
Michael 2024-05-16 15:26:46 +00:00
parent 1f12d1e668
commit 846addf7b3

View file

@ -1589,6 +1589,9 @@ class GServer
$name = 'nomad';
$curlResult = DI::httpClient()->get($url . '/manifest', 'application/manifest+json', [HttpClientOptions::REQUEST => HttpClientRequest::SERVERINFO]);
if (!$curlResult->isSuccess() || ($curlResult->getBodyString() == '')) {
if ($curlResult->getReturnCode() == 418) {
$name = 'streams';
}
return $name;
}