From a88f8225a7f86a0aca03dccc826b0fbe2ab4c754 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Fri, 19 Nov 2010 22:47:41 -0500 Subject: [PATCH] Web remote controls I can play, pause, stop, and advance to the next song through the web interface. --- html/album.py | 10 ++--- html/controls.html | 71 +++++++++++++++++++++++++++++++++++ html/controls.py | 23 ++++++++++++ html/index.html | 1 + html/stock_media-next.png | Bin 0 -> 2030 bytes html/stock_media-pause.png | Bin 0 -> 875 bytes html/stock_media-play.png | Bin 0 -> 1684 bytes html/stock_media-stop.png | Bin 0 -> 837 bytes libsaria/sources/playlist.py | 2 +- plugins/web_server.py | 4 +- 10 files changed, 102 insertions(+), 9 deletions(-) create mode 100644 html/controls.html create mode 100644 html/controls.py create mode 100644 html/stock_media-next.png create mode 100644 html/stock_media-pause.png create mode 100644 html/stock_media-play.png create mode 100644 html/stock_media-stop.png 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("
") wfile.write("
\n") titles = [] @@ -46,11 +49,6 @@ def body(wfile, args): wfile.write("
") - wfile.write("") - #wfile.write("