fix: Deezer source dot red — probe GET-ed a POST-only test endpoint
Some checks failed
Dev Nightly Build / nightly (push) Has been cancelled
Some checks failed
Dev Nightly Build / nightly (push) Has been cancelled
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.
This commit is contained in:
parent
598a480a0b
commit
91912681e5
1 changed files with 3 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue