8000 Fix 'from_scratch': delete all tags before writing new tags to file by rdy2go · Pull Request #5828 · beetbox/beets · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix 'from_scratch': delete all tags before writing new tags to file #5828

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rdy2go
Copy link
@rdy2go rdy2go commented Jun 20, 2025

Description

Fixes #3706.

Issue

Comment tags are written to file even if option 'from_scratch' is used. The same tags are not written to the file if imported together with other files as album. Therefore 'from_scratch' is not working as described in the documentation.

Solution

  1. Add test: Adapt the function from the 'regular' import class and insert it in the class for the singleton import test.
  2. Fix bug : Add check for 'from_scratch' option. If used, clear metadata before applying 'new' metadata with autotag.
  3. No documentation change needed. Option now works as described in the documentation.
  4. Add changelog.

To Do

  • Documentation.
  • Changelog.
  • Tests.

## Github Issues
Fixes 	beetbox#3706
Related beetbox#5165

## Issue
Comment tags are written to file even if option 'from_scratch' is used.
The same tags are not written to the file if imported together with other files as album.
Therefore 'from_scratch' is not working as described in the documentation.

## Solution
1. Add test: Adapt the function from the 'regular' import class and insert it in the class for the singleton import test.
2. Fix bug : Add check for 'from_scratch' option. If used, clear metadata before applying 'new' metadata with autotag.
3. No documentation change needed. Option now works as described in the documentation.
4. Add changelog.
@wisp3rwind
Copy link
Member

Not sure what's up with CI here.

The change itself (didn't look at the test now) looks good to me: This was never implemented for SingletonImportTask, but only ImportTask, cf. #2755, and this PR only matches both implentations of apply_metadata.

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

Successfully merging this pull request may close these issues.

I can't get "import --from-scratch" to import "from scratch"
2 participants
0