A LastFM to Pleroma scrobbler
app.py | ||
LICENSE | ||
README.md | ||
scrobbler.env | ||
scrobbler.service |
LastFM to Pleroma
This app sends scrobbles from LastFM to Pleroma.
It can be used to scrobble from other platforms like Spotify, Deezer, Soundcloud or any platform that LastFM is compatible with.
Requirements
- A LastFM API account (https://www.last.fm/api/account/create)
- An account on a Pleroma instance
- Python >= 3.10 and
python-requests
Usage
Clone the repository, export the environment variables listed below and run the app.
A systemd service is provided as an example.
Configuration
Variable name | Description | Example |
---|---|---|
PLEROMA_ENDPOINT |
Pleroma scrobbler endpoint | https://social.middleearth.fr/api/v1/pleroma/scrobble |
PLEROMA_USER |
Pleroma account username | eldeberen |
PLEROMA_PASSWORD |
Pleroma account password | s0me_p@ssw0rd |
LASTFM_USER |
LastFM user to scrobble | eldeberen |
LASTFM_API_KEY |
LastFM API key | d0f8d96ef806c440d4d2bce0bb562445 |
REFRESH_DELAY |
Seconds between two refreshs | 30 |