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

cover not deleted when removing an album that has been imported twice, while importing #5629

Open
Eve1374 opened this issue Feb 12, 2025 · 0 comments

Comments

@Eve1374
Copy link

Eve1374 commented Feb 12, 2025

Problem

Running this command in verbose (-vv) mode:

$ beet -vv import mypath

with fetchart and embedart activated, led to this problem:

If an album is already imported, beets asks if I want to keep both, or remove one. when I do Remove old, the old album tracks are deleted, but the folder remains with inside only cover.jpg.
In my case, it happens because I have multiple times the same album in different file formats when importing.

The expected behaviour is that the whole folder of the album to remove would be deleted. A workaround for this is to import the music without fetchart nor embedart, and run beet fetchart afterward.

Setup

  • OS: Ubuntu 22.04
  • Python version: Python 3.10.12
  • beets version: 2.2.0
  • Turning off plugins made problem go away (yes/no): yes, if reactivated afterwards

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
    synced: no
    sources:
    - google
    - genius
    - tekstowo
    - lrclib
    dist_thresh: 0.1
directory: /home/eve/Music/testBeetsOut/music
# --------------- Main ---------------

library: /home/eve/Music/testBeetsOut/data/musicbeets.db

# --------------- Plugins ---------------

plugins: fetchart embedart web lyrics fromfilename discogs duplicates
discogs:
    source_weight: 0.0
    user_token: REDACTED
    apikey: REDACTED
    apisecret: REDACTED
    tokenfile: discogs_token.json
    separator: ', '
    index_tracks: no
    append_style_genre: no
duplicates:
    album: no
    checksum: ''
    copy: ''
    count: no
    delete: no
    format: ''
    full: no
    keys: []
    merge: no
    move: ''
    path: no
    tiebreak: {}
    strict: no
    tag: ''
fetchart:
    auto: yes
    minwidth: 0
    maxwidth: 0
    quality: 0
    max_filesize: 0
    enforce_ratio: no
    cautious: no
    cover_names:
    - cover
    - front
    - art
    - album
    - folder
    sources:
    - filesystem
    - coverart
    - itunes
    - amazon
    - albumart
    - cover_art_url
    store_source: no
    high_resolution: no
    deinterlace: no
    cover_format:
    google_key: REDACTED
    google_engine: 001442825323518660753:hrh5ch1gjzm
    fanarttv_key: REDACTED
    lastfm_key: REDACTED
embedart:
    maxwidth: 0
    auto: yes
    compare_threshold: 0
    ifempty: no
    remove_art_file: no
    quality: 0
web:
    host: 127.0.0.1
    port: 8337
    cors: ''
    cors_supports_credentials: no
    reverse_proxy: no
    include_paths: no
    readonly: yes

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