ThirdPartyServices: SetContactMethods for setting, enable/disable
replace AddContactMethods with a more generalised SetContactMethods, which can set (or leave alone) contact method addresses/names/ids and set (or leave alone) contact preferences. A little awkward to use, but works everywhere, and now a bunch of Jellyseerr integration features are present for Ombi (which they should've been anyway).
This commit is contained in:
@@ -369,7 +369,9 @@ func start(asDaemon, firstCall bool) {
|
||||
// NOTE: As of writing this, the order in app.thirdPartyServices doesn't matter,
|
||||
// but in future it might (like app.contactMethods does), so append to the end!
|
||||
if app.config.Section("ombi").Key("enabled").MustBool(false) {
|
||||
app.ombi = &OmbiWrapper{}
|
||||
app.ombi = &OmbiWrapper{
|
||||
OmbiUserByJfID: app.getOmbiUser,
|
||||
}
|
||||
app.debug.Printf(lm.UsingOmbi)
|
||||
ombiServer := app.config.Section("ombi").Key("server").String()
|
||||
app.ombi.Ombi = ombi.NewOmbi(
|
||||
|
||||
Reference in New Issue
Block a user