Skip to content

Erroneous Duplicates Output? #6476

@gboysko

Description

@gboysko

Problem

Running beet dup has this erroneous output.

$ beet dup
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1
: 1

Nothing is displayed by : 1. Looking at the code, I suspect that the value of $path is empty string and there is a count of 1. Both response are quite perplexing.

I configured duplicates with two keys: artist and title.

Setup

  • OS: Ubuntu v25.10
  • Python version: 3.13.7
  • beets version: 2.8.0
  • Turning off plugins made problem go away (yes/no): I couldn't as I need the duplicates plugihn.

My configuration (output of beet config) is:

directory: /mnt/Media/Music
import:
  move: yes
original_date: yes
asciify_paths: yes
# plugins: discogs autobpm edit embedart fetchart lastgenre scrub missing info replaygain
# plugins: discogs musicbrainz autobpm edit embedart fetchart lastgenre scrub missing info replaygain
plugins: musicbrainz autobpm edit embedart fetchart lastgenre scrub missing info replaygain zero duplicates
paths:
    default: $albumartist/$album%aunique{}/$track $title
replaygain:
    backend: gstreamer
embedart:
    auto: yes
    ifempty: yes
    remove_art_file: yes
zero:
  fields: month day
duplicates:
  keys:
    - artist
    - title

What peaked my interest was this query of my library:

$ beet ls "first day of my life"
Bright Eyes - I'm Wide Awake, It's Morning - First Day Of My Life
Bright Eyes - I’m Wide Awake, It’s Morning - First Day of My Life

To explain, I had been experimenting with importing files using MusicBrainz at one point, then Discogs to find other matches. I had been retagging these songs as they were in two different album directories. I correctly completed the retagging (now there is only one copy of the song, in only one album), but I was looking for ways to cleanup this in my library (I suspect that there are many others).

When I tried out, beet dup using the default set of keys (which uses MusicBrainz tags), I didn't see any duplicates. That's what prompted me to explore beet dup with keys of artist and title.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions