beetbox / beetbox/beets

Skip user input on duplicate import decisions when files match exactly

Open
#2,455 1 comment 1 reaction 0 assignees View on GitHub
feature
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

### Problem

I have a hunch that once tagged, the conflicting files were crc32-exact duplicates of each other. I have seen multiple Beets questions about importing a duplicate album that matches in all listed attributes. Both of these were imported through Beets, I think I just had two copies of them on my hard drive. If the crc32s match, the files are literally identical and Beets can safely just delete one and keep the other without bothering the user.

```
E:\Music\Paul McCarney (15 items)
Correcting tags from:
Paul McCarney - Run Devil Run
To:
Paul McCartney - Run Devil Run
URL:
https://musicbrainz.org/release/066e963b-2838-37df-a606-b0129a86a053
(Similarity: 99.4%) (artist) (CD, 1999, US, Capitol Records)
* Try Not To Cry -> Try Not to Cry
* Shake A Hand -> Shake a Hand
This album is already in the library!
Old: 15 items, MP3, 320kbps, 40:46, 93.4 MiB
New: 15 items, MP3, 320kbps, 40:46, 93.4 MiB
```

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points; start by tracing the duplicate-album import decision and the CRC32 comparison that precedes the user prompt. The exact-match case should retain one copy, delete the other, and complete without asking for input, while other conflicts still prompt the user.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.