Skip to content

zero plugin: keep_fields is not preserving genre, embedded art, and corrupts date #6075

@opaulonobrega

Description

@opaulonobrega

Title: zero plugin: keep_fields is not preserving genre, embedded art, and corrupts date

Description:

I am facing an issue where the zero plugin, when run manually with the keep_fields whitelist option, is either deleting or corrupting tags that I explicitly listed to keep.

My standard workflow is:

  1. I import my library into Beets, using fetchart and embedart for cover art and lastgenre for genre tags.
  2. I then manually run beet zero to clean up extraneous tags.

Problem: After running beet zero, the following issues occur:

  • Genre Deleted: The genre tag added by lastgenre is removed.
  • Cover Art Deleted: The embedded album art (images field) is removed.
  • Date Corrupted: The full date tag (date) is corrupted (e.g., changed from YYYY-MM-DD to just YYYY).

I have tried adding the most relevant fields to my keep_fields list, but the issue persists.

My Configuration (config.yaml):

directory: C:\Users\Paulo\Downloads\Beets
library: C:\Users\Paulo\Downloads\Beets\library.db

import:
  copy: yes
  move: no
  write: yes
  autotag: yes

paths:
  default: $albumartist/($year) $album/$track - $title

plugins:
  - scrub
  - musicbrainz
  - lastgenre
  - fetchart
  - embedart
  - zero

scrub:
  auto: yes

lastgenre:
  auto: yes
  force: yes
  source: album

fetchart:
  auto: yes
  maxwidth: 1000

embedart:
  auto: yes
  maxwidth: 1000

zero:
  auto: no
  keep_fields:
    - track
    - title
    - artist
    - albumartist
    - album
    - disc
    - date
    - year
    - genre
    - images
  update_database: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginPull requests that are plugins related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions