My Music Setup
- Published on:
- Categories:
- Self-hosted, Music 3, Process 15
- Current music:
- Follow The Compass —
Lunar Eclipse
- Current drink:
- Peppermint Tea
A few days ago, I saw news that Last.fm will close off their API, and make it available only for paid “pro” users. I noted it somewhere, and went with my days, but got reminded about this by Mayank in Mastodon, who exported their last.fm data due to that.
Based on the last.fm “API keys will require Pro from 1st December” announcement, the existing API keys will continue to work, but only for scrobbling. For me, that might be enough, but I started to look at alternatives.
There is Listenbrainz, but as Mayank also pointed out, they published a “Growing pains: An update on the ListenBrainz service status” earlier this year, and I don’t think it is a good idea to rely on just another service, especially if they’re struggling under load.
Well, I am already self-hosting my music (a mix of what I am buying on Bandcamp Fridays, from qobuz when I cannot find it on Bandcamp, and game soundtracks that are sometimes available when you buy them) using Navidrome on my Terramaster NAS (and listening in Amperfy), so I decided why not self-host the listenbrainz too?
Looking into it — it is possible to self-host it, but there are also various alternatives that use the same API, and I chose Koito because why not.
Now, I did set up everything, and it seems to work!
Ah, and I also did export my Last.fm data with this nice service. I had first to go in Last.fm privacy settings and uncheck the “Hide recent listening information” for the data to be available for export.
And when importing this data into Koito, it seemed to be very slow. And that was not that the.json with all my exported data was ~120mb, by checking what it was doing (docker logs --tail 50 koito), for every track it was going to MusicBrainz to get all the info about the track, and got rate-limited.
Setting a KOITO_DISABLE_MUSICBRAINZ=true env variable in docker config helped, and I already did connect Koito with Navidrome API for getting what I already have there easier.
I don’t have spoons to describe all the steps I did for setting everything up (and for Navidrome I do not remember them), but if anyone has any questions — I’ll be happy to answer. And if I will find a supply of spoons, maybe I will update this post with more specific instructions/steps that I used for setting everything up.
Also… did you know/notice that in this blog, at the very top, I have “current music” field? I have! Most of the time it even has a hidden embed to Bandcamp for listening to it while you’re reading the post! I wrote about this feature of my blog in a “Current Music” post two years ago.