-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
embedart plugin disregards "write: no" and "-W" config opts #1427
Comments
It might be preferable to add the config check into There are two other locations that call PR #1428 adds the config test to |
Thanks for the report, and for the fix! This is indeed a problem. |
A better fix, hopefully in the correct place: |
That looks awesome; thanks. If you can just add a quick note to the changelog about the fix, this will be ready to merge. 😃 |
OK, will do. How should I add a test the I don't see code I could reuse for testing plugins from the import CLI command. Looks like I'd need to reproduce the setup and teardown bits into a new class. Is there a simpler way? Thanks! |
Great! If you open a new PR with the new change, we can merge that now. Then the tests can come later. As you have inferred, they will be a little involved. Some setup and teardown will indeed be needed—some of the other plugin tests (e.g., |
…_reynhout Fix #1427: embedart plugin should observe write config
* upstream/master: Skip symlink tests on Windows Provide Unicode to Jellyfish 0.5.0 Slightly expand changelog for beetbox#1436 Fix autotag test: duplicated assertion Update changelog for beetbox#1427 fix Test config opt import/write before embedding art (fixes beetbox#1427)
Any import action with
embedart
enabled causes a full write of tags and art, even when config file specifieswrite: no
, or commandline includes-W
.CAUSE:
art.py
does not check config optionimport/write
before callingtry_write
.SUGGESTED FIX: check config option first! :) PR will be attached presently.
The text was updated successfully, but these errors were encountered: