mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-29 21:27:05 +02:00
Upgrade musicbrainzws2
This commit is contained in:
parent
b104c2bc42
commit
159f486cdc
4 changed files with 9 additions and 4 deletions
|
@ -58,7 +58,11 @@ func (b *ListenBrainzApiBackend) Options() []models.BackendOption {
|
|||
|
||||
func (b *ListenBrainzApiBackend) InitConfig(config *config.ServiceConfig) error {
|
||||
b.client = NewClient(config.GetString("token"))
|
||||
b.mbClient = *musicbrainzws2.NewClient(version.AppName, version.AppVersion)
|
||||
b.mbClient = *musicbrainzws2.NewClient(musicbrainzws2.AppInfo{
|
||||
Name: version.AppName,
|
||||
Version: version.AppVersion,
|
||||
URL: version.AppURL,
|
||||
})
|
||||
b.client.MaxResults = MaxItemsPerGet
|
||||
b.username = config.GetString("username")
|
||||
b.checkDuplicates = config.GetBool("check-duplicate-listens", false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue