From d8eba458bd88b7d51b2113610456c35cce9722f1 Mon Sep 17 00:00:00 2001 From: Arno Hautala Date: Wed, 6 Sep 2023 18:50:01 -0400 Subject: [PATCH] use ui.should_write() to control restore during import --- beetsplug/scrub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/scrub.py b/beetsplug/scrub.py index d80446686..484ec073a 100644 --- a/beetsplug/scrub.py +++ b/beetsplug/scrub.py @@ -109,7 +109,7 @@ class ScrubPlugin(BeetsPlugin): self._log.error('could not scrub {0}: {1}', util.displayable_path(path), exc) - def _scrub_item(self, item, restore=True): + def _scrub_item(self, item, restore): """Remove tags from an Item's associated file and, if `restore` is enabled, write the database's tags back to the file. """ @@ -146,4 +146,4 @@ class ScrubPlugin(BeetsPlugin): for item in task.imported_items(): self._log.debug('auto-scrubbing {0}', util.displayable_path(item.path)) - self._scrub_item(item) + self._scrub_item(item, ui.should_write())