psst icon indicating copy to clipboard operation
psst copied to clipboard

Removes multiple songs if there are duplicates

Open SO9010 opened this issue 1 year ago • 1 comments

Describe the bug When having a song added more than once in a playlist, then you remove one, it removed every single song which is the same. This makes it annoying to then re-add the song, especially if you forget which song this is.

To Reproduce Add a song multiple times to a playlist, then right click onto the song, and then observe all of the songs that are the same disappearing.

Expected behavior Remove just the one song.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

  • OS: Arch linux

SO9010 avatar Jun 10 '24 19:06 SO9010

This is definitely a bug. We should identify the song key not just by the song itself but also perhaps its position in the playlist.

jacksongoode avatar Jun 15 '24 13:06 jacksongoode

Figured it out. It's actually undocumented but you can remove tracks by index.

https://github.com/JMPerez/spotify-dedup/commit/d0493aa0b760a3e4dd5d747b7cae605fbec60c9c

jacksongoode avatar Jul 22 '24 20:07 jacksongoode