From daa4e0b54ff5df13fd9b292232ad08060665fcd3 Mon Sep 17 00:00:00 2001 From: BernhardGehl Date: Tue, 4 Apr 2017 21:43:05 +0200 Subject: [PATCH] remove leftover utf-8 encode from path handling Reaving the .encode in the code causes folders with non-ASCII symbols (tested with some German umlauts) to show up empty in "browse". After removing, the folder contents show up fine. --- mopidy/file/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/file/library.py b/mopidy/file/library.py index 6d426b85..9ead1d55 100644 --- a/mopidy/file/library.py +++ b/mopidy/file/library.py @@ -141,5 +141,5 @@ class FileLibraryProvider(backend.LibraryProvider): def _is_in_basedir(self, local_path): return any( path.is_path_inside_base_dir( - local_path, media_dir['path'].encode('utf-8')) + local_path, media_dir['path']) for media_dir in self._media_dirs)