Show HN: Recycle your old Spotify playlists into new ones (playlistrecycle.com)
I wanted a way to quickly generate new Spotify playlists from my library based on some simple user inputs. There are probably a bunch of songs floating around in old playlists that you will never listen to again so the Spotify Playlist Recycling Plant is an attempt to resurrect these forgotten gems!
At the heart of this tool is a simple custom algorithm that uses Spotify's 5000+ unique genres to find similar artists. It works well for my purposes but everybody uses Spotify differently so I'd love some feedback :)
Built using React and the Spotify Web API.
22 comments
[ 0.26 ms ] story [ 63.0 ms ] threadThe aim is to find similar artists to the ones you have selected based on genre (every artist on Spotify is associated with multiple genres).
1. The tool pre-calculates the number of artists from your playlists that are associated with each genre (e.g. "jazztronica: 3" indicates that there are 3 artists in your playlists in the genre jazztronica).
2. We compute a threshold called artist_thresh which is a function of the total number of artists across all your imported playlists and the "Similarity Threshold" set in the tool.
3. For each artist you select in the tool, we find all of their associated genres which have an artist count BELOW our artist_thresh.
4. For each of the genres selected in the previous step (as well as any genres manually selected in the tool), add all the associated artists to our output playlist.
5. Finally apply the "Release Years" and "Include Explicit Tracks?" filters and output the playlist.
The underlying assumption here is that rarer genres are more specific and therefore better indicators of similarity. E.g. I am more confident that two artists that share the genre "uk alternative hip hop" are similar than if they only share the genre "rap".
Hope this makes sense!
This was my first time using React so it might be a bit messy...
Thanks, this works great!
https://github.com/andrewjkuo/playlist-recycle
EDIT: A nice additional feature would be to add a filter to only show playlist that you created yourself
And I like that feature idea. Will add it to the backlog!
Just a simple suggestion: allow for copying the result as a text list (I'm one of those who can tolerate you reading my data but not writing in it)
Some of you may be looking for more "plain" ways of recycling your library (where you more explicitly choose the final outcome) by
- (re)organizing (by genres, popularity, date added, audio features...) -> http://organizeyourmusic.playlistmachinery.com/
- (re)combining (using a good selection of modular dataflow operators) -> http://smarterplaylists.playlistmachinery.com/
---
Bonus : https://observablehq.com/@mjbo/genre-map-explorer-for-spotif...
Can I ask how many tracks and artists you are importing from your playlists and how many artists you are selecting in the parameters panel?