Repository navigation
Ignore duplicates when adding tracks to the library - #1052
Conversation
85023bc to
eebc1ec
Compare
|
|
||
| ignore_duplicates (true) | ||
| Ignore duplicates when adding tracks to the library. A track is a duplicate | ||
| if it has a matching artist, album, disc number, track number, and track |
There was a problem hiding this comment.
I wonder if it might be a good idea to check the length too.
There was a problem hiding this comment.
On the one hand I'd worry the same track could be +/- 1 second depending on encoder, album edition, etc. At the same time, in my quite tidy library there was just one duplicate: an album with two "0. Bonus Track" that were in fact different bonus tracks. A length check would have caught that.
Overall I don't know which works better for all the real world messy libraries out there. If I go by feelings, the second "0. Bonus Track" deserved to get removed. 😁
There was a problem hiding this comment.
A length check would have caught that.
That's the kind of situation I had in mind.
real world messy libraries out there
For simplicity, it might be easier to keep it without the length check, and to add an option to force-add tracks.
If more granularity is needed in the future, another duplicate_method option could be added with different checks.
|
Just a simple rebase to fix the conflict. I still think we compare enough already that comparing the track durations isn't going to be helpful, but let me know if there's strong objection and I can look at it. |
pgaskin
left a comment
There was a problem hiding this comment.
Tested Works as expected.
https://copr.fedorainfracloud.org/coprs/pgaskin/cmus-testing/build/6167850/
https://github.com/pgaskin/cmus/commits/a52df51b476c7aba0b08ebe59d622a198ba95612
https://nightly.link/pgaskin/rpms/actions/runs/5538232778
|
@flyingmutant, this then a release? |
f5c29a2 to
caa94b2
Compare
What about your draft PRs? |
I personally use packages built from my dev fork of cmus including them, so I (and the few hundred other users of those packages) am not affected too much if they doesn't go out in the next release. The pl-env one works fine, but there's a few minor things I need to change based on the review comments. I'll do them soon, probably by the end of today, just in case you want to release it. |
Closes #423.