mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 16:02:53 +01:00
replaygain: Avoid suppressing debug output (#1398)
This was suppressing debug output even with `beet -vv import`. This also avoid registering an import hook when auto is disabled.
This commit is contained in:
parent
39a6fa5495
commit
ab78eed02e
2 changed files with 6 additions and 8 deletions
|
|
@ -759,7 +759,6 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
|
||||
def __init__(self):
|
||||
super(ReplayGainPlugin, self).__init__()
|
||||
self.import_stages = [self.imported]
|
||||
|
||||
# default backend is 'command' for backward-compatibility.
|
||||
self.config.add({
|
||||
|
|
@ -770,7 +769,6 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
})
|
||||
|
||||
self.overwrite = self.config['overwrite'].get(bool)
|
||||
self.automatic = self.config['auto'].get(bool)
|
||||
backend_name = self.config['backend'].get(unicode)
|
||||
if backend_name not in self.backends:
|
||||
raise ui.UserError(
|
||||
|
|
@ -781,6 +779,10 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
)
|
||||
)
|
||||
|
||||
# On-import analysis.
|
||||
if self.config['auto']:
|
||||
self.import_stages = [self.imported]
|
||||
|
||||
try:
|
||||
self.backend_instance = self.backends[backend_name](
|
||||
self.config, self._log
|
||||
|
|
@ -887,11 +889,6 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
def imported(self, session, task):
|
||||
"""Add replay gain info to items or albums of ``task``.
|
||||
"""
|
||||
if not self.automatic:
|
||||
return
|
||||
|
||||
self._log.setLevel(logging.WARN)
|
||||
|
||||
if task.is_album:
|
||||
self.handle_album(task.album, False)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ Little fixes and improvements:
|
|||
* The output of the :ref:`fields-cmd` command is now sorted. Thanks to
|
||||
:user:`multikatt`. :bug:`1402`
|
||||
* :doc:`/plugins/replaygain`: Fix a number of issues with the new
|
||||
``bs1770gain`` backend on Windows. :bug:`1398`
|
||||
``bs1770gain`` backend on Windows. Also, fix missing debug output in import
|
||||
mode. :bug:`1398`
|
||||
|
||||
1.3.11 (April 5, 2015)
|
||||
----------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue