Use bs5-jf on setup, fix bugs

No longer quits if the program times out connecting to the given
jellyfin host.
This commit is contained in:
Harvey Tindall
2020-08-30 18:09:06 +01:00
parent c6f845296a
commit 1c980cf7cd
4 changed files with 68 additions and 42 deletions

View File

@@ -15,6 +15,7 @@ func (app *appContext) TestJF(gc *gin.Context) {
gc.BindJSON(&req)
tempjf := Jellyfin{}
tempjf.init(req.Host, "jfa-go-setup", app.version, "auth", "auth")
tempjf.noFail = true
_, status, err := tempjf.authenticate(req.Username, req.Password)
if !(status == 200 || status == 204) || err != nil {
app.info.Printf("Auth failed with code %d (%s)", status, err)