beetbox / beets

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

beets duplicate plugin can't detect duplicates #5039

Open ragnarov opened 11 months ago

ragnarov commented 11 months ago

Problem

Beets duplicate plugin don't detect the following duplicates.

$ beet -vv ls

Led to this problem:

 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 -  - 
 - Piano Arrangements from 2017 - The Force Theme - Star Wars
 - Piano Arrangements from 2017 - The Force Theme - Star Wars
 - Piano Arrangements from 2017 - The Force Theme - Star Wars
 - Piano Arrangements from 2017 - The Force Theme - Star Wars
 - Piano Arrangements from 2017 - The Force Theme - Star Wars

Setup

My configuration (output of beet config) is:


library: /home/atom/HWD/mounts/data/Music/records/records.db
pluginpath: /home/atom/HWD/mounts/data/Music/plugins
asciify_paths: yes
color: yes

import:
    write: no
    copy: yes
    move: no
    link: no
    hardlink: no
    reflink: no
    resume: ask
    languages: en bn ru
    quiet: no
    group_albums: yes
    autotag: no

plugins: play duplicates
play:
    command: cmus-remote -q
    use_folders: no
    relative_to:
    raw: no
    warning_threshold: 100
    bom: no
duplicates:
    album: no
    checksum: ''
    copy: ''
    count: no
    delete: no
    format: ''
    full: no
    keys: []
    merge: no
    move: ''
    path: no
    tiebreak: {}
    strict: no
    tag: '' ```
DjSlash commented 11 months ago

The ls shows a list of tracks that have missing metadata; why is that, how are they imported ? What does beet ls -f $path show?

You have a certain expectation of duplicates, but you don't state what that is. You don't show what the current behavior is, nor do you state what it does (not). If I'm not mistaken, you have it configured in a way that it just won't work. You emptied the keys: option, which disables it's default behavior. All other options also disables it's functionality (except for tag:, which is set to an incorrect syntax). Also, the duplicates plugin has to be triggered manually.

ragnarov commented 11 months ago

The ls shows a list of tracks that have missing metadata; why is that, how are they imported ?

beet import name_of_file

What does beet ls -f $path show?

/home/atom/HWD/mounts/data/Music/files/__/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[27]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[28]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[29]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[30]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[32]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[33]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[34]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[35]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[37]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[38]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[39]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[40]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[42]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[43]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[44]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[45]/00.flac
/home/atom/HWD/mounts/data/Music/files/_/[82]/00.opus
/home/atom/HWD/mounts/data/Music/files/_/Piano Arrangements from 2017/00 The Force Theme - Star Wars.flac
/home/atom/HWD/mounts/data/Music/files/_/Piano Arrangements from 2017 [31]/00 The Force Theme - Star Wars.flac
/home/atom/HWD/mounts/data/Music/files/_/Piano Arrangements from 2017 [36]/00 The Force Theme - Star Wars.flac
/home/atom/HWD/mounts/data/Music/files/_/Piano Arrangements from 2017 [41]/00 The Force Theme - Star Wars.flac
/home/atom/HWD/mounts/data/Music/files/_/Piano Arrangements from 2017 [46]/00 The Force Theme - Star Wars.flac

You have a certain expectation of duplicates, but you don't state what that is. You don't show what the current behavior is,

current behavior is no output as shown below

$ beet duplicates

nor do you state what it does (not).

I want it to remove those duplicates.

If I'm not mistaken, you have it configured in a way that it just won't work. You emptied the keys: option, which disables it's default behavior. All other options also disables it's functionality (except for tag:, which is set to an incorrect syntax). Also, the duplicates plugin has to be triggered manually.

this is my config.yaml

directory: /home/atom/HWD/mounts/data/Music/files
library: /home/atom/HWD/mounts/data/Music/records/records.db
pluginpath: /home/atom/HWD/mounts/data/Music/plugins
asciify_paths: yes
color: yes
import:
    write: no
    copy: yes
    move: no
    link: no
    hardlink: no
    reflink: no
    resume: ask
    languages: en bn ru
    quiet: no
    group_albums: yes
    autotag: no
plugins: play duplicates

play:
    command: cmus-remote -q
DjSlash commented 11 months ago

You wrote that you've imported these files with beet import, but in your config you have autotag set to no. Which means that beets have imported these files with the metadata that existed in the files prior to the import. Your original post shows that there are no artist, title and album tags available and I suspect that mb_trackid and mb_albumid are also missing. Those two are the default tags which beets uses to find duplicates.

I suggest to start from scratch, get the files properly tagged/imported and than you can find duplicates if there are any.