Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: No matching items found. when removing album from library #5595

Open
trevordavies095 opened this issue Jan 13, 2025 · 1 comment
Open

Comments

@trevordavies095
Copy link

trevordavies095 commented Jan 13, 2025

Problem

I went to remove an album from my library yesterday and ran into the issue below. It seems to be persistent across many other albums as well.

Running this command in verbose (-vv) mode:

$ beet -vv remove '/Volumes/Backup/Media/Music/Adele/[2015] 25 [Columbia] (FLAC 16-44kHz)'

Led to this problem:

user configuration: /Users/<REDACTED>/.config/beets/config.yaml
data directory: /Users/<REDACTED>/.config/beets
plugin paths:
fetchart: google: Disabling art source due to missing key
fetchart: lastfm: Disabling art source due to missing key
fetchart: To use Spotify as an album art source, you must install the beautifulsoup4 module. See the documentation for further details.
inline: adding item field multidisc
Sending event: pluginload
library database: /Volumes/Backup/Media/Music/beets/musiclibrary.db
library directory: /Volumes/Backup/Media/Music
Sending event: library_opened
Parsed query: AndQuery([PathQuery('path', '/Volumes/Backup/Media/Music/Adele/[2015] 25 [Columbia] (FLAC 16-44kHz)', fast=True, case_sensitive=False)])
Parsed sort: NullSort()
error: No matching items found.

Here's a link to the music files that trigger the bug (if relevant):

Setup

  • OS: macOS 15.2
  • Python version: Python 3.12.4
  • beets version: beets version 2.2.0
  • Turning off plugins made problem go away (yes/no): no

My configuration (output of beet config) is:

directory: /Volumes/Backup/Media/Music
library: /Volumes/Backup/Media/Music/beets/musiclibrary.db
threaded: yes
per_disc_numbering: yes
asciify_paths: yes

plugins: missing lastgenre mbsync describe badfiles yearfixer lastgenre inline copyartifacts fetchart
fetchart:
  minwidth: 1000
  maxwidth: 1000
  cover_names: front back
  sources: itunes *
  cautious: yes


badfiles:
  check_on_import: yes
  commands:
      ogg: myoggchecker --opt1 --opt2
      flac: flac --test --warnings-as-errors --silent
      mp3: mp3val

copyartifacts:
  extensions: .cue .log .jpg .CUE .LOG .JPG

match:
  strong_rec_thresh: 0.05
  max_rec:
    source: strong
    artist: strong
    album: strong
    media: strong
    mediums: strong
    year: strong
    country: strong
    label: strong
    catalognum: strong
    albumdisambig: strong
    album_id: strong
    tracks: strong
    missing_tracks: medium
    unmatched_tracks: medium
    track_title: strong
    track_artist: strong
    track_index: strong
    track_length: strong
    track_id: strong
  preferred:
    media: ['CD|File', 'CD']
    countries: ['DE', 'XW', 'US', 'GB|UK']


item_fields:
  multidisc: 1 if disctotal > 1 else 0

# Display the bitdepth and sample rate if the file is flac
# Directory and naming scheme.
paths:
  default: %if{$albumartist_sort, %asciify{$albumartist_sort}, %asciify{$albumartist}}/%if{$year,[$year] %asciify{$album},%asciify{$album}}%if{$label, [%asciify{$label}]} ($format%if{$bitdepth, $bitdepth-$samplerate})/%if{$multidisc,$disc-}$track %asciify{$title}
  singleton: %if{$albumartist_sort, %asciify{$albumartist_sort}, %asciify{$albumartist}}/Non-Album/%asciify{$title}
  albumtype:soundtrack: Soundtracks/%if{$year,[$year] %asciify{$album},%asciify{$album}}%if{$label, [%asciify{$label}]} ($format%if{$bitdepth, $bitdepth-$samplerate})/%if{$multidisc,$disc-}$track %asciify{$title}
  comp: Compilations/%if{$year,[$year] %asciify{$album},%asciify{$album}}%if{$label, [%asciify{$label}]} ($format%if{$bitdepth, $bitdepth-$samplerate})/%if{$multidisc,$disc-}$track - %asciify{$artist} - %asciify{$title}

import:
  bell: yes
@trevordavies095
Copy link
Author

trevordavies095 commented Jan 13, 2025

It's interesting. I ran a query against my musiclibrary.db
SELECT * FROM items WHERE path LIKE '/Volumes/Backup/Media/Music/Adele/[2015] 25 [Columbia] (FLAC 16-44kHz)/%'

and sure enough the items come back. So then I thought maybe I'm blind and there's something different in the path that the DB spits back and where the actual music is stored.

However, if I Shift+Cmd+G (on mac) to the same directory in path from the query above, it brings me directly to the folder with the music.

I'm also able to import AND remove newly imported albums with no issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant