Add an auto remove duplicates for the playlists.#2046
Open
Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Open
Add an auto remove duplicates for the playlists.#2046Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Conversation
e149529 to
59ef7c8
Compare
f6bb3bd to
e526c1e
Compare
27886fc to
0861938
Compare
0861938 to
b3dee7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.