Renamed parameter for lbarchive also to "archive-file"

This commit is contained in:
Philipp Wolfer 2025-05-24 17:38:19 +02:00
parent 7fb77da135
commit 1ef498943b
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 7 additions and 5 deletions

View file

@ -49,14 +49,14 @@ func (b *ListenBrainzArchiveBackend) Name() string { return "listenbrainz-archiv
func (b *ListenBrainzArchiveBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "file-path",
Label: i18n.Tr("Export ZIP file path"),
Name: "archive-path",
Label: i18n.Tr("Archive path"),
Type: models.String,
}}
}
func (b *ListenBrainzArchiveBackend) InitConfig(config *config.ServiceConfig) error {
b.filePath = config.GetString("file-path")
b.filePath = config.GetString("archive-path")
b.lbClient = listenbrainz.NewClient("", version.UserAgent())
b.mbClient = *musicbrainzws2.NewClient(musicbrainzws2.AppInfo{
Name: version.AppName,