local: Replace invalid UTF-8 data from library

This commit is contained in:
Stein Magnus Jodal 2014-01-16 21:08:55 +01:00
parent fab3d8ae68
commit ba87613fd1

View File

@ -59,7 +59,8 @@ class _BrowseCache(object):
for uri in uris:
path = translator.local_track_uri_to_path(uri, b'/')
parts = self.splitpath_re.findall(path.decode(self.encoding))
parts = self.splitpath_re.findall(
path.decode(self.encoding, 'replace'))
filename = parts.pop()
node = self._root
for part in parts: