From 8f3c4b7c6fffde062223e071d0fe43ab467219ca Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Thu, 16 Jun 2011 18:19:42 -0400 Subject: [PATCH] libsaria: Fix library browser web page It needs to use the new library functions to avoid an error. --- libsaria/server/pages/root.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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