From 846addf7b39f8e2229776bd284f424d073d4624f Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 16 May 2024 15:26:46 +0000 Subject: [PATCH] Improved streams detection --- src/Model/GServer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Model/GServer.php b/src/Model/GServer.php index f4ef38e765..8eb77bd933 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -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; }