2020-07-03 08:59:12 +00:00
|
|
|
from config import plugins
|
|
|
|
|
|
|
|
PLUGIN = plugins.get_plugin_config(
|
|
|
|
name="scrobbler",
|
|
|
|
label="Scrobbler",
|
2020-08-26 10:26:27 +00:00
|
|
|
description=(
|
|
|
|
"A plugin that enables scrobbling to ListenBrainz and Last.fm. "
|
|
|
|
"It must be configured on the server if you use Last.fm."
|
|
|
|
),
|
|
|
|
homepage="https://dev.funkwhale.audio/funkwhale/funkwhale/-/blob/develop/api/funkwhale_api/contrib/scrobbler/README.rst", # noqa
|
2020-07-03 08:59:12 +00:00
|
|
|
version="0.1",
|
|
|
|
user=True,
|
|
|
|
conf=[
|
|
|
|
{
|
|
|
|
"name": "url",
|
|
|
|
"type": "url",
|
|
|
|
"allow_null": True,
|
|
|
|
"allow_blank": True,
|
|
|
|
"required": False,
|
|
|
|
"label": "URL of the scrobbler service",
|
|
|
|
"help": (
|
|
|
|
"Suggested choices:\n\n"
|
|
|
|
"- LastFM (default if left empty): http://post.audioscrobbler.com\n"
|
|
|
|
"- ListenBrainz: http://proxy.listenbrainz.org/\n"
|
|
|
|
"- Libre.fm: http://turtle.libre.fm/"
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{"name": "username", "type": "text", "label": "Your scrobbler username"},
|
|
|
|
{"name": "password", "type": "password", "label": "Your scrobbler password"},
|
|
|
|
],
|
2020-08-26 10:26:27 +00:00
|
|
|
settings=[
|
|
|
|
{"name": "lastfm_api_key", "type": "text"},
|
|
|
|
{"name": "lastfm_api_secret", "type": "text"},
|
|
|
|
],
|
2020-07-03 08:59:12 +00:00
|
|
|
)
|