mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
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:
1
setup.go
1
setup.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user