libsaria: Fix library browser web page
It needs to use the new library functions to avoid an error.
This commit is contained in:
parent
9bc22e0d1d
commit
8f3c4b7c6f
|
@ -18,7 +18,9 @@ def library(write):
|
|||
write(SCRIPT % "utils.js")
|
||||
write("</head><body><table>\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("<tr style=\"background:%s\" ondblclick=play_id(%s)>" % (color, id))
|
||||
write("<td><a href=\"RPC/play_id/%s\" onclick=\"play_id(%s);return false\">%s</a></td>" % (id, id, title))
|
||||
write("<td>%s</td><td>%s</td>\n" % (artist, album))
|
||||
|
|
Loading…
Reference in New Issue