code-arman / Cleanify

Convert your Explicit Spotify playlists into Clean playlists in the click of a button
https://cleanify.app/
46 stars 7 forks source link

Idea: Sort Liked Songs By Genre Into Playlists #21

Open y0himba opened 1 month ago

y0himba commented 1 month ago

Hello.

First let me say that Cleanify is exactly what I was looking for. I ride a motorcycle with loud music, and it was always a chore to find non-explicit versions of the music I like.

Now for a suggestion/request: Is it possible to create a way to sort a huge Liked Songs list on Spotify by genre, create playlists for those genres, and sort the songs into them?

I have literally thousands of likes songs across all genres. This would be the end all ultimate Spotify tool.

Again, thank you for Cleanify!

pguduguntla commented 1 month ago

Honestly, I say just blast explicit music. I, for one, would enjoy being a fellow driver on the road!

code-arman commented 1 month ago

Really appreciate the kind words! Currently don't have the bandwidth the add this feature, but I understand how it can be useful.

If you or someone else would like to contribute or make a new project that's focused on this, feel free.

I think this could be done pretty easily with the Spotify API (if I'm understanding the request correctly):

Step 1: Pull all liked songs for the logged in user (https://stackoverflow.com/questions/70609721/how-to-access-my-liked-songs-in-spotify-python) Step 2: Pull genre information for each song and put it into a big table Step 3: For each genre, create a playlist (https://developer.spotify.com/documentation/web-api/reference/create-playlist) and add all the songs (https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist)

You might be able to get pretty far by putting those instructions into ChatGPT or a tool like Cursor and have it code it up for you

y0himba commented 1 month ago

I could try, but I am in no way a coder. Just an old fart who likes his music...