In duplicate resolution for singletons, show whether the duplicate track is part of an album
Problem
My beet workflow is usually the same when importing:
- import albums first
- deal with singles after that.
When running beet import -s <singles_dir>, beet may find duplicates (ie. tracks already in my library) and prompt for what to do.
The problem is that duplicates only show the user size/quality/duration of the existing file, but not if it is a single or an album track. This is dangerous IMHO because if the new single has a better quality, the user would tend to remove the album track from his/her library (therefore leading to an incomplete album).
Maybe these changes would help mitigate the problem:
- print the album name when a duplicate is found
- when importing singles, only consider singles as duplicate candidates
Setup
- OS: Linux Debian Stretch
- beets version 1.4.3
- Python version 2.7.13
- plugins: chroma, discogs, embedart, fetchart, fromfilename, info, inline, lastgenre, replaygain, scrub
- Turning off plugins made problem go away (yes/no): no
Cool; good idea! It seems reasonable to show the album that the duplicate track is a part of.
I was looking for a way to make sure my singletons are checked against already imported albums. So that I don't spawn duplicates in the library. Seems like there is no way currently to do so. Running
beet duplicates
and taking action post import seems the only way right now... But it is questionable.
It would be great to have this option.
Hi! I'd like to work on this. Plan: when a duplicate is found during a singleton import, show the album name of the existing track (if it belongs to an album), and add a test. I'll keep the PR small. Is that okay?