Fixes for Jellyseerr login issues (#1031)

## Description
Fixes some issues with Jellyseerr login. Also makes error message more
clear by showing the URLs that were tested and the error that occurred.

Also fixes an issue where you could not remove a Jellyseerr server if it
was previously configured but can no longer connect.

### Related issues
Fixes #1028
Should fix #1022
Related to #747

### Testing
Emulator, tested adding and removing valid & invalid IPs

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Ray 2026-03-04 15:11:09 -05:00 committed by GitHub
parent 6867ba7657
commit ce6461d23b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 165 additions and 96 deletions

View file

@ -62,4 +62,32 @@ class TestSeerr {
)
Assert.assertEquals(expected, urls)
}
@Test
fun testCreateUrls5() {
val urls =
createUrls("10.0.0.2:443")
.map { it.toString() }
val expected =
listOf(
"http://10.0.0.2:443/api/v1",
"https://10.0.0.2/api/v1",
)
Assert.assertEquals(expected, urls)
}
@Test
fun testCreateUrls6() {
val urls =
createUrls("10.0.0.2:8080")
.map { it.toString() }
val expected =
listOf(
"http://10.0.0.2:8080/api/v1",
"https://10.0.0.2:8080/api/v1",
)
Assert.assertEquals(expected, urls)
}
}