diff --git a/mopidy/frontends/mpris/objects.py b/mopidy/frontends/mpris/objects.py index e7a9243e..a66abdb5 100644 --- a/mopidy/frontends/mpris/objects.py +++ b/mopidy/frontends/mpris/objects.py @@ -99,8 +99,8 @@ class MprisObject(dbus.service.Object): def get_playlist_id(self, playlist_uri): # Only A-Za-z0-9_ is allowed, which is 63 chars, so we can't use # base64. Luckily, D-Bus does not limit the length of object paths. - # Since base32 pads trailing bytes with = chars, we need to replace - # them with the allow _ char. + # Since base32 pads trailing bytes with "=" chars, we need to replace + # them with an allowed character such as "_". encoded_uri = base64.b32encode(playlist_uri).replace('=', '_') return '/com/mopidy/playlist/%s' % encoded_uri