refactor; separate jfapi and ombi into modules

This commit is contained in:
Harvey Tindall
2020-11-02 00:53:08 +00:00
parent 0f4e77364b
commit c84ea17af4
12 changed files with 333 additions and 313 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func pwrMonitor(app *appContext, watcher *fsnotify.Watcher) {
}
app.info.Printf("New password reset for user \"%s\"", pwr.Username)
if currentTime := time.Now(); pwr.Expiry.After(currentTime) {
user, status, err := app.jf.userByName(pwr.Username, false)
user, status, err := app.jf.UserByName(pwr.Username, false)
if !(status == 200 || status == 204) || err != nil {
app.err.Printf("Failed to get users from Jellyfin: Code %d", status)
app.debug.Printf("Error: %s", err)