diff -r c6af9d7a88b5 -r d917eb0698bd gmyth-stream/server/0.2/lib/server.py --- a/gmyth-stream/server/0.2/lib/server.py Fri May 04 20:45:38 2007 +0100 +++ b/gmyth-stream/server/0.2/lib/server.py Thu May 10 02:08:13 2007 +0100 @@ -80,8 +80,9 @@ transcoders = utils.PluginSet(Transcoder) menu = { + "Stop": "/stop-transcoder.do", "Status": "/status.do", - "Stop": "/stop-transcoder.do", + "Version": "/version.do", "Shutdown": "/shutdown.do" } @@ -109,8 +110,8 @@ self.serve_stop_transcoder(body) elif self.path == "/status.do": self.serve_status(body) - elif self.path == "/play.do": - self.serve_play(body) + elif self.path == "/version.do": + self.serve_version(body) elif self.path == "/stream.do": self.serve_stream(body) else: @@ -153,6 +154,14 @@ self.wfile.write(utils.getHTML("index", {"menu": self._nav_items()})) # serve_main() + def serve_version(self, body): + self.send_response(200) + self.send_header("Content-Type", "text/html") + self.send_header('Connection', 'close') + self.end_headers() + if body: + self.wfile.write("Version: %s" % __version__) + def serve_shutdown(self, body): self.send_response(200)