Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jfa-go/commit/94e3c13b3e9fa4f4b0a963f0debfda7434329baa
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
14 additions and
0 deletions
@ -1715,11 +1715,22 @@ func (app *appContext) ApplySettings(gc *gin.Context) {
"policy" : map [ string ] string { } ,
"homescreen" : map [ string ] string { } ,
}
/ * Jellyfin doesn ' t seem to like too many of these requests sent in succession
and can crash and mess up its database . Issue # 160 says this occurs when more
than 100 users are modified . A delay totalling 500 ms between requests is used
if so . * /
var shouldDelay bool = len ( req . ApplyTo ) >= 100
if shouldDelay {
app . debug . Println ( "Adding delay between requests for large batch" )
}
for _ , id := range req . ApplyTo {
status , err := app . jf . SetPolicy ( id , policy )
if ! ( status == 200 || status == 204 ) || err != nil {
errors [ "policy" ] [ id ] = fmt . Sprintf ( "%d: %s" , status , err )
}
if shouldDelay {
time . Sleep ( 250 * time . Millisecond )
}
if req . Homescreen {
status , err = app . jf . SetConfiguration ( id , configuration )
errorString := ""
@ -1735,6 +1746,9 @@ func (app *appContext) ApplySettings(gc *gin.Context) {
errors [ "homescreen" ] [ id ] = errorString
}
}
if shouldDelay {
time . Sleep ( 250 * time . Millisecond )
}
}
code := 200
if len ( errors [ "policy" ] ) == len ( req . ApplyTo ) || len ( errors [ "homescreen" ] ) == len ( req . ApplyTo ) {