beetbox / beets

music library manager and MusicBrainz tagger
http://beets.io/
MIT License
12.8k stars 1.82k forks source link

Importer: Resolve duplicate tracks in a single directory with different format/quality #791

Open bdouble opened 10 years ago

bdouble commented 10 years ago

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.

sampsyo commented 10 years ago

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".

tom-- commented 8 years ago

+1

rahvint commented 8 years ago

+1

ronalde commented 7 years ago

+1

xthursdayx commented 5 years ago

+1

jackwilsdon commented 5 years ago

Please use the GitHub reactions system for voting on requested features 😁:+1: