Upgrade musicbrainzws2

This commit is contained in:
Philipp Wolfer 2025-04-29 10:32:59 +02:00
parent b104c2bc42
commit 159f486cdc
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
4 changed files with 9 additions and 4 deletions

View file

@ -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)

View file

@ -18,6 +18,7 @@ package version
const (
AppName = "scotty"
AppVersion = "0.4.1"
AppURL = "https://git.sr.ht/~phw/scotty/"
)
func UserAgent() string {