Fix a MAFW filename encoding issue on Maemo 5
This commit is contained in:
parent
52ee5e897b
commit
bea6c0e4ca
1 changed files with 2 additions and 0 deletions
|
@ -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::'):]
|
||||
|
|
Loading…
Reference in a new issue