diff --git a/libsaria/server/pages/root.py b/libsaria/server/pages/root.py index 9a8308d8..5870a242 100644 --- a/libsaria/server/pages/root.py +++ b/libsaria/server/pages/root.py @@ -18,7 +18,9 @@ def library(write): write(SCRIPT % "utils.js") write("\n") color = "white" - for id, title, artist, album in sources.library.walk_library("id", "title", "artist", "album"): + get_attrs = sources.library.get_attrs + for id in sources.library.list_ids(): + title, artist, album = get_attrs(id, "title", "artist", "album") write("" % (color, id)) write("" % (id, id, title)) write("\n" % (artist, album))
%s%s%s