From f865fc00cd7a1a8bff513f5cf7ad90ce0c4d34ac Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 8 Jun 2019 16:23:49 -0400 Subject: [PATCH] replaygain: Fix py3 crash in audiotools backend Fixes #3305. --- beetsplug/replaygain.py | 2 +- docs/changelog.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 4cc5f435c5..8e11ee3709 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -713,7 +713,7 @@ def open_audio_file(self, item): file format is not supported """ try: - audiofile = self._mod_audiotools.open(item.path) + audiofile = self._mod_audiotools.open(py3_path(syspath(item.path))) except IOError: raise ReplayGainError( u"File {} was not found".format(item.path) diff --git a/docs/changelog.rst b/docs/changelog.rst index baef715084..06c662be6d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -35,6 +35,9 @@ Fixes: fixing crashes in MPD clients like mpDris2 on seek. The ``playlistid`` command now works properly in its zero-argument form. :bug:`3214` +* :doc:`/plugins/replaygain`: Fix a Python 3 incompatibility in the Python + Audio Tools backend. + :bug:`3305` For plugin developers: