diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 9933191ee..3fbc3e5d5 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -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: diff --git a/docs/changelog.rst b/docs/changelog.rst index 75aa06814..600a80100 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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) ----------------------