WritheM / IntelliMerge

IntelliMerge is a platform that allows users to create smart Spotify playlists that self-update and merge the contents of other playlists.
https://writhem.net/intellimerge/
9 stars 1 forks source link

Preventing duplicate songs in master Playlist #26

Open JovanET opened 3 years ago

JovanET commented 3 years ago

It would be great to have an option to filter out songs from being added multiple times to the master Playlist. I consistently have hundredths of song duplicates in my master playlist which is annoying & also wasting resources. So it would be nice if the system could block songs from being added more than once to the master playlist.

pironic commented 3 years ago

We actually already do this. Unfortunately it's preventing duplicates based on id. This means that if a song appears on more than one album or would otherwise have a different id, the system thinks they are different songs.

If you right click on a song and click Share, then copy song link you'll get the song's id... If that song id is different than the other version it thinks they are unique, because technically, they are.

example: https://open.spotify.com/track/1dI77VhaLcQSgQLSnIs03D?si=3a768a462afc4c69 https://open.spotify.com/track/39LLxExYz6ewLAcYrzQQyP?si=329cb8c144f64cfd

Same song, different ids. Absolutely nothing I can do about that.

Can you provide any examples of the script duplicating the same id?

JovanET commented 3 years ago

@pironic Thank you for your response. I understand the problem with two different IDs for the same song. But I thought you might be able to implement a system to check the songs based on names & artists, kind like spotify-dedup.com does. Not sure how hard to implement that would be tho.

pironic commented 3 years ago

Been doing some thinking... Maybe as a VIP feature i could do something like this, but by default i dont pull the song titles when merging. I will need to investigate the cost of pulling the titles as well... or instead.