From c1ddc444801c0cd4d33ca5437d0268fbc3d04afc Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 18 Jun 2011 19:15:41 +0200 Subject: closed #333 --- module/web/pyload_app.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 33ad6612f..4cd07fa16 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -36,7 +36,7 @@ from webinterface import PYLOAD, PYLOAD_DIR, PROJECT_DIR, SETUP from utils import render_to_response, parse_permissions, parse_userdata, login_required, get_permission, set_permission from filters import relpath, unquotepath -from module.utils import formatSize, decode +from module.utils import formatSize, decode, fs_decode # Helper @@ -183,7 +183,7 @@ def downloads(): 'files': [] } - items = [decode(x) for x in listdir(root)] + items = [fs_decode(x) for x in listdir(root)] for item in sorted(items): if isdir(join(root, item)): @@ -192,10 +192,11 @@ def downloads(): 'path': item, 'files': [] } - for file in sorted(listdir(join(root, item))): + files = [fs_decode(x) for x in listdir(join(root, item))] + for file in sorted(files): try: if isfile(join(root, item, file)): - folder['files'].append(decode(file)) + folder['files'].append(file) except: pass -- cgit v1.2.3