Autenticate OAuth backends

This commit is contained in:
Philipp Wolfer 2023-11-21 17:51:13 +01:00
parent 94704f9cd0
commit fa7732c538
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
15 changed files with 61 additions and 20 deletions

View file

@ -37,6 +37,8 @@ type ScrobblerLogBackend struct {
log ScrobblerLog
}
func (b *ScrobblerLogBackend) Name() string { return "scrobbler-log" }
func (b *ScrobblerLogBackend) FromConfig(config *viper.Viper) models.Backend {
b.filePath = config.GetString("file-path")
b.includeSkipped = config.GetBool("include-skipped")