diff --git a/templates/index.html b/templates/index.html index ef8178d..06d92ed 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,6 @@ -{% macro dirlisting(path='') -%} +{% macro dirlisting(dir, path='') -%} {%- endmacro %} @@ -101,7 +94,7 @@
- {{ dirlisting() }} + {{ dirlisting(music_library) }} diff --git a/util.py b/util.py index e2868c6..2b8d522 100644 --- a/util.py +++ b/util.py @@ -84,6 +84,7 @@ class Dir(object): if subdir in self.subdirs: searchpath = '/'.join(path.split('/')[1::]) subdirs = self.subdirs[subdir].get_subdirs(searchpath) + subdirs = list(map(lambda subsubdir: os.path.join(subdir, subsubdir), subdirs)) else: subdirs = self.subdirs