From 1ef498943b6a1db48e60ef250b4b567a6613bc33 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Sat, 24 May 2025 17:38:19 +0200 Subject: [PATCH] Renamed parameter for lbarchive also to "archive-file" --- config.example.toml | 6 ++++-- internal/backends/lbarchive/lbarchive.go | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.example.toml b/config.example.toml index 28c37ad..d01a51a 100644 --- a/config.example.toml +++ b/config.example.toml @@ -23,8 +23,10 @@ check-duplicate-listens = false # This backend supports listens from a ListenBrainz export archive # (https://listenbrainz.org/settings/export/). backend = "listenbrainz-archive" -# The file path to the ListenBrainz export archive. -file-path = "./listenbrainz_outsidecontext.zip" +# The file path to the ListenBrainz export archive. The path can either point +# to the ZIP file as downloaded from ListenBrainz or a directory were the +# ZIP was extracted to. +archive-path = "./listenbrainz_outsidecontext.zip" [service.maloja] # Maloja is a self hosted listening service (https://github.com/krateng/maloja) diff --git a/internal/backends/lbarchive/lbarchive.go b/internal/backends/lbarchive/lbarchive.go index 6e2f349..a91c0a5 100644 --- a/internal/backends/lbarchive/lbarchive.go +++ b/internal/backends/lbarchive/lbarchive.go @@ -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,