feature branch playlist-builder-fuzz-dedup fixes this issue by fuzzy matching the candidate new track's title and artist names against the same for those tracks already in the playlist
bugfix merged into the 2.0.5 beta release: pip install "dj-beatcloud[levenshtein]<2.1.0" --pre
Describe the bugplaylist_builder will sometimes add duplicate tracks when the track comes from a different album (the ID is different) than the same track which already exists in a playlist.
To Reproduce
Steps to reproduce the behavior:
Have a playlist with a track in it
Have playlist_builder find the same track in Spotify API query results but from a different album
Expected behavior
The same track, even if it's from a different album, should not be added more than once to a playlist.
Update:
pip install "dj-beatcloud[levenshtein]<2.1.0" --pre
Describe the bug
playlist_builder
will sometimes add duplicate tracks when the track comes from a different album (the ID is different) than the same track which already exists in a playlist.To Reproduce Steps to reproduce the behavior:
playlist_builder
find the same track in Spotify API query results but from a different albumExpected behavior The same track, even if it's from a different album, should not be added more than once to a playlist.