From c9380abc3b2c5f3b0f050eff0fbfb8fb148cdf0b Mon Sep 17 00:00:00 2001 From: D Andrew Reynhout Date: Mon, 20 Apr 2015 21:03:22 -0400 Subject: [PATCH] Test config opt import/write before embedding art (fixes #1427) --- beetsplug/embedart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 66a1d81b2..99be2180f 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -126,7 +126,7 @@ class EmbedCoverArtPlugin(BeetsPlugin): def process_album(self, album): """Automatically embed art after art has been set """ - if self.config['auto']: + if self.config['auto'] and config['import']['write']: max_width = self.config['maxwidth'].get(int) art.embed_album(self._log, album, max_width, True, self.config['compare_threshold'].get(int),