Skip to content

Commit

Permalink
replaygain: Fix py3 crash in audiotools backend
Browse files Browse the repository at this point in the history
Fixes #3305.
  • Loading branch information
sampsyo committed Jun 8, 2019
1 parent aea54e2 commit f865fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/replaygain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit f865fc0

Please sign in to comment.