From 2ff362a7f0cf26baa1ac99ef5b9b04bf72e2287d Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sat, 17 Nov 2012 17:14:40 +0100 Subject: [PATCH] mpris: Fix typo --- mopidy/frontends/mpris/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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