25 lines
537 B
Python
25 lines
537 B
Python
# Bryan Schumaker (11/17/2010)
|
|
|
|
from libsaria.sources import library
|
|
|
|
def header(wfile):
|
|
wfile.write("<html><body>")
|
|
|
|
def footer(wfile):
|
|
wfile.write("</body></html>")
|
|
|
|
def body(wfile, args):
|
|
wfile.write("<table border=1>")
|
|
|
|
artist = library.tag_tree[args["artist"]].value
|
|
album = library.tag_tree[args["artist"]][args["album"]].value
|
|
wfile.write("<tr><td>%s</td></tr><br>" % artist)
|
|
wfile.write("<tr><td>%s</td></tr>" % album)
|
|
wfile.write("</table>")
|
|
|
|
|
|
def to_html(wfile, args):
|
|
header(wfile)
|
|
body(wfile, args)
|
|
footer(wfile)
|