diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index 4fd9c92..3aa291d 100644 --- a/resources/lib/vfs.py +++ b/resources/lib/vfs.py @@ -23,7 +23,7 @@ import json import os import xbmc import xbmcvfs - +import urllib def walk(path): @@ -48,14 +48,14 @@ def walk(path): current_dirs, current_files = [], [] for x in listdir(current_path, extra_metadata=True): - if not x['file'].startswith("zip://"): - if x['filetype'] == 'directory': + + if x['filetype'] == 'directory' and not x['file'].startswith("zip://"): - current_dirs.append(x['file']) + current_dirs.append(urllib.unquote(x['file'])) - else: - - current_files.append(x['file']) + else: + + current_files.append(urllib.unquote(x['file'])) except IndexError: