mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
Remove .get() when checking config values
This commit is contained in:
parent
1dfd79e658
commit
12db40fa67
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue