beets
beets copied to clipboard
Importer: Resolve duplicate tracks in a single directory with different format/quality
As a beets user with a large library of music, I want to import albums that have duplicate tracks in varying formats and bitrates. When using silent mode, I want beets to import only the highest quality copy into the library. This is so that my re-organized library will have the best sound quality available to me.
I'd like to be able to define rules that state a hierarchy of formats to prefer when importing duplicates - i.e. something like FLAC > AAC > MP3.
Within a given lossy format, I would like to be able to specify that beets import the highest resolution copy - i.e. import a 320 kbps MP3 instead of a 128 kbps MP3 of the same track.
If this were to be done with metadata only - one way to define duplicates robustly might be:
If artist, album artist, title, and track title match exactly for all tracks in an album folder, AND there are an even multiple of tracks that the album should have relative to the musicbrainz/discogs entry (i.e. 2x the number of tracks, 3x the number of tracks etc.) then import the preferred format as set by user configuration, and import the highest bitrate copy within that preferred format.
Chromaprint might be used to fingerprint tracks to detect exactly duplicates as well.
This feature would work sort of like an "intra-album" version of #116, which works across full albums to choose higher-quality music. I would hope that both could share common logic for determining what constitutes "higher quality".
+1
+1
+1
+1
Please use the GitHub reactions system for voting on requested features 😁:+1: