mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-31 10:58:35 +02:00
Renamed parameter for lbarchive also to "archive-file"
This commit is contained in:
parent
7fb77da135
commit
1ef498943b
2 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue