diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index babb469ad..9e5bff4e0 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -743,7 +743,7 @@ class AudioToolsBackend(Backend): # Each call to title_gain on a ReplayGain object returns peak and gain # of the track. - rg_track_gain, rg_track_peak = rg._title_gain(rg, audiofile) + rg_track_gain, rg_track_peak = self._title_gain(rg, audiofile) self._log.debug(u'ReplayGain for track {0} - {1}: {2:.2f}, {3:.2f}', item.artist, item.title, rg_track_gain, rg_track_peak) diff --git a/docs/changelog.rst b/docs/changelog.rst index 99ed6d99b..0bde4470e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -64,6 +64,8 @@ Fixes: disabled this time. * :doc:`/plugins/lastimport`: The plugin now works with the beets api key by default. This can be overridden in the plugin config. +* :doc:`/plugins/replaygain`: Fix a crash using the Python Audio Tools + backend. :bug:`1873` .. _beets.io: http://beets.io/ .. _Beetbox: https://github.com/beetbox