# HG changeset patch # User morphbr # Date 1180723305 -3600 # Node ID ffc7212656a5f69f7707edb52d64b31c122923de # Parent c73e1eb09a6f4883018e029429ec2b7d603a2fc9 [svn r747] * GMyth-Stream - status.do able to list all running transcoders diff -r c73e1eb09a6f -r ffc7212656a5 gmyth-stream/server/0.3/lib/request_handler.py --- a/gmyth-stream/server/0.3/lib/request_handler.py Fri Jun 01 17:12:35 2007 +0100 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Fri Jun 01 19:41:45 2007 +0100 @@ -206,15 +206,23 @@ if body: tl = self.server.get_transcoders() - if not tl and not self.query.get("tid", None): + if not tl and not self.query.get("tid", None) and \ + not self.query.get("running", None): running = "

No running transcoder.

\n" - elif self.query.get("tid", None) and not tl: + elif not tl and self.query.get("tid", None): tids = self.query.get("tid") for tid in tids: stat = self.transcoders_log.get_status(int(tid)) self.wfile.write("%s
" % stat) + elif self.query.get("running", None): + for transcoder, request in tl: + outf = transcoder.params_first("outfile") + tid = transcoder.tid + self.wfile.write("%s:%s
" % (tid, outf)) + return True + elif self.query.get("tid", None): req_tid = self.query.get("tid") for transcoder, request in tl: