beetbox / beets

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

remove a singleton named as "_" #3312

Closed daviddoji closed 5 years ago

daviddoji commented 5 years ago

During import, some Singletons were classified as ".mp3", ".1.mp3", ... I'm trying to get rid of them, but it seems that beet can't find them.

Problem

Running this command in verbose (-vv) mode:

beet -vv remove _.1.mp3                               :(

Led to this problem:

user configuration: /home/david/.config/beets/config.yaml
data directory: /home/david/.config/beets
plugin paths: 
Sending event: pluginload
lyrics: Disabling google source: no API key configured.
library database: /datos/Music/musiclibrary.db
library directory: /datos/Music
Sending event: library_opened
error: No matching items found.

Setup

My configuration (output of beet config) is:

lyrics:
    bing_lang_from: []
    auto: yes
    bing_client_secret: REDACTED
    bing_lang_to:
    google_API_key: REDACTED
    google_engine_ID: REDACTED
    genius_api_key: REDACTED
    fallback:
    force: no
    local: no
    sources:
    - google
    - lyricwiki
    - musixmatch
    - genius
directory: /datos/Music
library: /datos/Music/musiclibrary.db

import:
    move: yes

plugins: fetchart lyrics lastgenre inline web edit play
fetchart:
    cautious: yes
    cover_names: front back
    sources: amazon *
    auto: yes
    minwidth: 0
    maxwidth: 0
    enforce_ratio: no
    google_key: REDACTED
    google_engine: 001442825323XXXXXXXX:hxxxxxxxx
    fanarttv_key: REDACTED
    store_source: no
web:
    host: 0.0.0.0
    port: 8337
    cors: ''
    cors_supports_credentials: no
    reverse_proxy: no
    include_paths: no
play:
    command: /usr/bin/clementine
    use_folders: no
    relative_to:
    raw: no
    warning_threshold: 100
    bom: no

ui:
    color: yes
    colors:
        text_success: green
        text_warning: yellow
        text_error: red
        text_highlight: red
        text_highlight_minor: lightgray
        action_default: turquoise
        action: blue

paths:
    albumtype:english: English/$albumartist/$album%aunique{}/$track $title
    albumtype:spanish: Spanish/$albumartist/$album%aunique{}/$track $title
    albumtype:french: French/$albumartist/$album%aunique{}/$track $title
    albumtype:german: German/$albumartist/$album%aunique{}/$track $title
    albumtype:electronic: Electronic/$albumartist/$album%aunique{}/$track $title
    albumtype:misc: Miscellaneous/$albumartist/$album%aunique{}/$track $title
    albumtype:singleton: Singletons/$artist - $title
pathfields: {}
item_fields: {}
album_fields: {}
lastgenre:
    whitelist: yes
    min_weight: 10
    count: 1
    fallback:
    canonical: no
    source: album
    force: yes
    auto: yes
    separator: ', '
    prefer_specific: no
edit:
    albumfields: album albumartist
    itemfields: track title artist album
    ignore_fields: id path
sampsyo commented 5 years ago

Hi! This report doesn't have enough detail to make it clear what the problem you're having is. Can you explain more carefully what's going on and what you want to do?

daviddoji commented 5 years ago

Thanks for the fast reply and sorry for not being specific enough.

In my "Singletons" folder, I have some songs that were imported by beet as ".mp3", ".1.mp3", ... without any other extra information nor metadata.

I'm trying to get rid of them, either by renaming or deleting from the library. I can do it manually, but I'm not sure if the beet database will complain later.

How can I do this (rename or remove) a file that is on a folder but it's not recognized by beet?

Hope that this time is clear :)

sampsyo commented 5 years ago

Got it; thanks! A few options come to mind:

daviddoji commented 5 years ago

Thanks for the reply. Unfortunately your suggestions didn't work :(

david@arch /datos/Music/Singletons % beet ls -p title::^$ 
zsh: no matches found: title::^$
1 david@arch /datos/Music/Singletons % ls                             :(
 _.1.mp3
 _.2.mp3
...
sampsyo commented 5 years ago

That's an error from your shell. You probably want to escape or use single quotes.

daviddoji commented 5 years ago

That did the magic :) Once again, thanks for this amazing library.

sampsyo commented 5 years ago

Yay!