Skip to content

Commit

Permalink
form: substitute Jellyfin on success messages
Browse files Browse the repository at this point in the history
fixes #177
  • Loading branch information
hrfee committed Dec 20, 2021
1 parent d81679f commit d8b1f03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.go
Expand Up @@ -157,6 +157,11 @@ func (app *appContext) loadConfig() error {

substituteStrings = app.config.Section("jellyfin").Key("substitute_jellyfin_strings").MustString("")

if substituteStrings != "" {
v := app.config.Section("ui").Key("success_message")
v.SetValue(strings.ReplaceAll(v.String(), "Jellyfin", substituteStrings))
}

oldFormLang := app.config.Section("ui").Key("language").MustString("")
if oldFormLang != "" {
app.storage.lang.chosenFormLang = oldFormLang
Expand Down

0 comments on commit d8b1f03

Please sign in to comment.