mirror of
https://git.sr.ht/~phw/scotty
synced 2025-06-01 19:38:34 +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
|
# This backend supports listens from a ListenBrainz export archive
|
||||||
# (https://listenbrainz.org/settings/export/).
|
# (https://listenbrainz.org/settings/export/).
|
||||||
backend = "listenbrainz-archive"
|
backend = "listenbrainz-archive"
|
||||||
# The file path to the ListenBrainz export archive.
|
# The file path to the ListenBrainz export archive. The path can either point
|
||||||
file-path = "./listenbrainz_outsidecontext.zip"
|
# to the ZIP file as downloaded from ListenBrainz or a directory were the
|
||||||
|
# ZIP was extracted to.
|
||||||
|
archive-path = "./listenbrainz_outsidecontext.zip"
|
||||||
|
|
||||||
[service.maloja]
|
[service.maloja]
|
||||||
# Maloja is a self hosted listening service (https://github.com/krateng/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 {
|
func (b *ListenBrainzArchiveBackend) Options() []models.BackendOption {
|
||||||
return []models.BackendOption{{
|
return []models.BackendOption{{
|
||||||
Name: "file-path",
|
Name: "archive-path",
|
||||||
Label: i18n.Tr("Export ZIP file path"),
|
Label: i18n.Tr("Archive path"),
|
||||||
Type: models.String,
|
Type: models.String,
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *ListenBrainzArchiveBackend) InitConfig(config *config.ServiceConfig) error {
|
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.lbClient = listenbrainz.NewClient("", version.UserAgent())
|
||||||
b.mbClient = *musicbrainzws2.NewClient(musicbrainzws2.AppInfo{
|
b.mbClient = *musicbrainzws2.NewClient(musicbrainzws2.AppInfo{
|
||||||
Name: version.AppName,
|
Name: version.AppName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue