From 314521b6aee7da7abd65aec739793f602797fb69 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 7 Feb 2016 14:28:33 -0800 Subject: [PATCH] replaygain: Fix obvious typo (fix #1873, I hope) --- beetsplug/replaygain.py | 2 +- docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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