From 12db40fa67e7b905592495df4ac12bb0c6a36356 Mon Sep 17 00:00:00 2001 From: ybnd Date: Mon, 21 Dec 2020 08:50:39 +0100 Subject: [PATCH] Remove .get() when checking config values --- beetsplug/replaygain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index d3fff4a62..75e6ce23b 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -1553,7 +1553,7 @@ class ReplayGainPlugin(BeetsPlugin): def import_begin(self, session): """Handle `import_begin` event -> open pool """ - if self.config['auto'].get(bool): + if self.config['auto']: self.open_pool(self.config['threads'].get(int)) def import_end(self, paths): @@ -1564,7 +1564,7 @@ class ReplayGainPlugin(BeetsPlugin): def imported(self, session, task): """Add replay gain info to items or albums of ``task``. """ - if self.config['auto'].get(bool): + if self.config['auto']: if task.is_album: self.handle_album( task.album,