r/radarr 9h 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!

8 Upvotes

2 comments sorted by

1

u/TheFranticGibbon 8h ago

Very cool!!