mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
replaygain: Dodge possible encoding issues
In error reporting. May avoid the error in #1774, but it's hard to find out exactly what the Python types of these arguments are from the GStreamer documentation.
This commit is contained in:
parent
06ec01d225
commit
b25b4db9e1
1 changed files with 3 additions and 4 deletions
|
|
@ -522,10 +522,9 @@ class GStreamerBackend(Backend):
|
|||
err, debug = message.parse_error()
|
||||
f = self._src.get_property("location")
|
||||
# A GStreamer error, either an unsupported format or a bug.
|
||||
self._error = \
|
||||
ReplayGainError(u"Error {0} - {1} on file {2}".format(err,
|
||||
debug,
|
||||
f))
|
||||
self._error = ReplayGainError(
|
||||
"Error {0!r} - {1!r} on file {2!r}".format(err, debug, f)
|
||||
)
|
||||
|
||||
def _on_tag(self, bus, message):
|
||||
tags = message.parse_tag()
|
||||
|
|
|
|||
Loading…
Reference in a new issue