diff --git a/html/album.py b/html/album.py
index 079c6dbc..504000fa 100644
--- a/html/album.py
+++ b/html/album.py
@@ -30,7 +30,10 @@ def body(wfile, args):
img_ar = artist.replace("/", "%2F")
img_al = album.replace("/", "%2F")
wfile.write("
")
- wfile.write(" | " % (img_ar, img_al))
+ wfile.write("")
+ wfile.write("")
+ wfile.write(" | " % (img_ar, img_al))
+ wfile.write(" | ")
wfile.write(" | \n")
titles = []
@@ -46,11 +49,6 @@ def body(wfile, args):
wfile.write(" | ")
wfile.write("
|
")
- wfile.write("")
- #wfile.write("")
- #wfile.write("Text when no audio")
- wfile.write(" |
")
-
wfile.write("")
diff --git a/html/controls.html b/html/controls.html
new file mode 100644
index 00000000..e1cc9e45
--- /dev/null
+++ b/html/controls.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/html/controls.py b/html/controls.py
new file mode 100644
index 00000000..dce4090d
--- /dev/null
+++ b/html/controls.py
@@ -0,0 +1,23 @@
+# Bryan Schumaker (11/18/2010)
+
+import libsaria.audio
+import libsaria.sources
+
+play = libsaria.audio.play
+pause = libsaria.audio.pause
+stop = libsaria.audio.stop
+next = libsaria.sources.plist_next
+
+
+def to_html(wfile, args):
+ action = args["a"]
+ ret = False
+ if action == "play":
+ ret = play()
+ elif action == "pause":
+ ret = pause()
+ elif action == "stop":
+ ret = stop()
+ elif action == "next":
+ ret = next()
+ wfile.write(str(ret))
diff --git a/html/index.html b/html/index.html
index 5d8aa59e..b2313659 100644
--- a/html/index.html
+++ b/html/index.html
@@ -12,6 +12,7 @@ function message()
Library Browser
+Remote Controls