Skip to content

Add an auto remove duplicates for the playlists.#2046

Open
Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Vinzzzze:auto_remove_duplicates
Open

Add an auto remove duplicates for the playlists.#2046
Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Vinzzzze:auto_remove_duplicates

Conversation

@Vinzzzze
Copy link
Copy Markdown
Contributor

When adding tracks to a playlist, you may have tracks in flac format for quality and mp3 format for portable devices, so when you select an album from the library to add to the playlist the flac and the mp3 will be added.
You can use the remove duplicates menu on the playlist, but if you want to have some tracks more than one time in your playlist, it will also delete theses tracks...
So I add the opportunity to automatically delete the duplicates in the added track list.

In the parameters, playlist tab, I add a checkbox to remove the added duplicates.
The data is then forwarded to the playlist object, when tracks are inserted in the playlist (Playlist::InsertSongItems), if the functionality is on, the duplicates are removed (call Playlist::RemoveDuplicateSongs)
Playlist::RemoveDuplicateSongs had been change to work on any track list, not only the playlist's tracklist.

@Vinzzzze Vinzzzze force-pushed the auto_remove_duplicates branch 3 times, most recently from e149529 to 59ef7c8 Compare March 29, 2026 21:49
@Vinzzzze Vinzzzze force-pushed the auto_remove_duplicates branch 4 times, most recently from f6bb3bd to e526c1e Compare April 10, 2026 19:28
@Vinzzzze Vinzzzze force-pushed the auto_remove_duplicates branch 5 times, most recently from 27886fc to 0861938 Compare April 23, 2026 22:54
@Vinzzzze Vinzzzze force-pushed the auto_remove_duplicates branch from 0861938 to b3dee7a Compare April 26, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant