From e532000ad0b663b019c2524767bc444407475a57 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 10 Jan 2021 16:00:26 +0000 Subject: [PATCH] Mention emby in README, add notices about password resets --- README.md | 2 +- config/config-base.json | 2 +- main.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 187d999..0328f6b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ![jfa-go](images/banner.svg) -jfa-go is a user management app for [Jellyfin](https://github.com/jellyfin/jellyfin) that provides invite-based account creation as well as other features that make one's instance much easier to manage. +jfa-go is a user management app for [Jellyfin](https://github.com/jellyfin/jellyfin) (and now [Emby](https://emby.media/)) that provides invite-based account creation as well as other features that make one's instance much easier to manage. I chose to rewrite the python [jellyfin-accounts](https://github.com/hrfee/jellyfin-accounts) in Go mainly as a learning experience, but also to slightly improve speeds and efficiency. diff --git a/config/config-base.json b/config/config-base.json index 0785755..44fb06b 100644 --- a/config/config-base.json +++ b/config/config-base.json @@ -65,7 +65,7 @@ "emby" ], "value": "jellyfin", - "description": "Note: Emby integration works, but is not much of a priority. Jellyfin branding will still appear accross jfa-go." + "description": "Note: Emby integration works is missing some features, such as Password Resets." }, "substitute_jellyfin_strings": { "name": "Substitute occurrences of \"Jellyfin\"", diff --git a/main.go b/main.go index 5e2c1fe..8c0ca3d 100644 --- a/main.go +++ b/main.go @@ -447,7 +447,7 @@ func start(asDaemon, firstCall bool) { serverType = mediabrowser.EmbyServer timeoutHandler = common.NewTimeoutHandler("Emby", server, true) app.info.Println("Using Emby server type") - fmt.Println(aurora.Yellow("WARNING: Emby compatibility is experimental, and support is limited.\nSee the jfa-go wiki for more info.")) + fmt.Println(aurora.Yellow("WARNING: Emby compatibility is experimental, and support is limited.\nPassword resets are not available.")) } else { app.info.Println("Using Jellyfin server type") } @@ -555,7 +555,7 @@ func start(asDaemon, firstCall bool) { inviteDaemon := newRepeater(time.Duration(60*time.Second), app) go inviteDaemon.run() - if app.config.Section("password_resets").Key("enabled").MustBool(false) { + if app.config.Section("password_resets").Key("enabled").MustBool(false) && serverType == mediabrowser.JellyfinServer { go app.StartPWR() } } else {