Automatic Spotify Playlist of loved Last.fm tracks


I came across this post on Reddit and was surprised to find that there were no suggested solutions that would automatically add my loved tracks on Last.fm to a Spotify Playlist. Immediately, I thought back to the "live Twitter bio" post I wrote a few weeks back (or months, I've completely lost track of time over the exam period).

It turns out that it's quite easy to use the RSS and Spotify connections that will work in the background soon after a track on Last.fm is "loved". I have created an IFTTT applet that you can set up. Turns out you can no longer share Applets on IFTTT, so here are the steps to replicate mine:

If This...

Head to https://ifttt.com/create, login and set the trigger to "RSS". Hit new feed item and enter the feed url https://xiffy.nl/lastfmrss.php?user=danster103&loved, but change the username to your own.

Then That...

Search "Spotify" and choose the "Add Track To Playlist" option. Enter a playlist name like "Last.fm Loved" and set the search parameter to {{EntryTitle}}. That's it, when you love a song on Last.fm it will now add that track to your playlist. If it doesn't appear immediately, wait a few minutes and it should work.



It was also possible to fill the list with all my previously loved tracks using a website called lastify.space, however it looks like there are many alternatives available to do this.

Comments