From 91912681e5edaa7c0062b542e605af9f209bab32 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Mon, 29 Jun 2026 17:12:42 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20Deezer=20source=20dot=20red=20=E2=80=94?= =?UTF-8?q?=20probe=20GET-ed=20a=20POST-only=20test=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Test all sources" Deezer probe called _ssJson("/api/deezer-download/test") with no opts, i.e. a GET — but that route is POST-only, so it 405s, the probe throws, and the dot goes red even though Deezer downloads fine. POST it with an empty body (the endpoint then tests the SAVED ARL). The other probe endpoints (qobuz/hifi/amazon/soundcloud status) are all GET, so this was the only offender. --- webui/static/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/static/settings.js b/webui/static/settings.js index d5742b6f..4bc148fb 100644 --- a/webui/static/settings.js +++ b/webui/static/settings.js @@ -724,7 +724,9 @@ const HYBRID_SOURCE_PROBE = { tidal: () => _ssTestConn('tidal'), qobuz: () => _ssJson('/api/qobuz/auth/status').then(j => j.authenticated === true), hifi: () => _ssJson('/api/hifi/status').then(j => j.available === true), - deezer_dl: () => _ssJson('/api/deezer-download/test').then(j => j.success === true), + // POST (the endpoint is POST-only) with an empty body so it tests the SAVED ARL; a GET here + // 405s and the probe throws -> the dot goes red even though Deezer downloads fine. + deezer_dl: () => _ssJson('/api/deezer-download/test', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: '{}' }).then(j => j.success === true), amazon: () => _ssJson('/api/amazon/test-connection').then(j => j.connected === true), lidarr: () => _ssTestConn('lidarr'), soundcloud: () => _ssJson('/api/soundcloud/status').then(j => j.available === true && j.reachable === true),