r/radarr 12d ago

discussion Made a scraper for "Last.fm" to automatically pull your "recommended artists" from Last.fm, associate those with musicbrainz ID's and then format them into a JSON list for use with Lidarr in the "Import Lists" section as a "Custom List"

Sharing this here too only because I assume most people are like myself, and if they're running one 'arr, they're running as many as they can setup (or at the very least all the primary ones).

I made this a long time ago (myself), but wanted to make something other people could use. Threw what I had made into a self hosted LLM (Qwen 3.8) and after some back and forth got it where I wanted it. So there's your "AI warning" if you need one lol.

https://github.com/FantasyMaster85/LastRecommendations

Screenshots and instructions are there.

The summary is that you put your last.fm cookies in the docker compose file, every 25 hours (or whatever you configure it to do) it will check this page: https://www.last.fm/home/artists and pull the recommended artists in. It then takes those artists and get's their MusicBrainz ID (as the "custom list" in Lidarr requires it) and makes a JSON feed. That JSON feed is fully compatible with Lidarr.

Lastly, it keeps a history of all artists Last.fm has ever recommended to you in the "history" tab.

I personally use PlexAmp as my exclusive form of music consumption, and I have it setup to scrobble all my plays to Last.fm. This was just a good way to help me automate finding good new music. Hope you like it!

20 Upvotes

5 comments sorted by

1

u/CrispyBegs 11d ago

what does it download? every album for an artist or can you be more selective?

i currently use aurral which also uses lastfm recommendations but you can add a whole artist, or just individual albums from that artist

1

u/FantasyMaster85 11d ago

Doesn’t download anything, Lidarr does whatever you tell it to. All this does is take your recommended artists that Last.fm thinks you’d like based on your recent listening history and turns it into a list that’s compatible with Lidarr or just about anything else.

1

u/TheFranticGibbon 12d ago

Very cool!!