From bea6c0e4ca88c80efab8caff87c39d731cddde53 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sat, 28 Aug 2010 20:30:17 +0200 Subject: [PATCH] Fix a MAFW filename encoding issue on Maemo 5 --- src/gpodder/gtkui/frmntl/mafw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpodder/gtkui/frmntl/mafw.py b/src/gpodder/gtkui/frmntl/mafw.py index 876cd834..5fca75d8 100644 --- a/src/gpodder/gtkui/frmntl/mafw.py +++ b/src/gpodder/gtkui/frmntl/mafw.py @@ -178,6 +178,8 @@ class MafwPlaybackMonitor(object): def object_id_to_filename(self, object_id): # Naive, but works for now... if object_id.startswith('localtagfs::'): + if isinstance(object_id, unicode): + object_id = object_id.encode('utf-8') return 'file://'+urllib.quote(urllib.unquote(object_id[object_id.index('%2F'):])) elif object_id.startswith('urisource::'): return object_id[len('urisource::'):] -- 2.11.4.GIT