Skip to content

betamax/libre-fm-listenbrainz-sync

Repository files navigation

Libre.fm and Listenbrainz sync scripts

Contains two scripts to sync between Listenbrainz and Libre.fm. I'm currently trying out Listenbrainz as it looks promising. I had previously been unable to set up Spotify scrobbling for Libre.fm after Spotify removed in-built scrobbling. Using this you can achieve Spotify scrobbling in Libre.fm. I first used libre_fm_to_listenbrainz.py to populate a new Listenbrainz account with a linked Spotify account. Then I run listenbrainz_to_libre_fm.py on a Raspberry Pi every hour to sync the listens collected from Spotify by Listenbrainz to my Libre.fm account. I

Installation

# Create a virtual environment and install dependencies
python3 -m venv .venv
pip install -r requirements.txt

# Copy .env.example
cp .env.example .env

# Populate the required variables

Libre.fm to Listenbrainz

python libre_fm_to_listenbrainz.py

Listenbrainz to Libre.fm

python listenbrainz_to_libre_fm.py

About

Synchronise listens from Libre.fm to Listenbrainz and vice versa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages