replaygain: Fix py3 crash in audiotools backend

Fixes #3305.
This commit is contained in:
Adrian Sampson 2019-06-08 16:23:49 -04:00
parent aea54e2487
commit f865fc00cd
2 changed files with 4 additions and 1 deletions

View file

@ -713,7 +713,7 @@ class AudioToolsBackend(Backend):
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)

View file

@ -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: