# HG changeset patch # User morphbr # Date 1181060369 -3600 # Node ID c764b0a92282ab860fcd2a1f760716afc117465e # Parent ef4fb30176ddeab00b7a0f95ebbb2b80d7967e06 [svn r751] * GMyth-Streamer - Corrected version on 0.2 - Inserted "OK: Done" msg to download's status diff -r ef4fb30176dd -r c764b0a92282 gmyth-stream/server/0.2/lib/server.py --- a/gmyth-stream/server/0.2/lib/server.py Tue Jun 05 12:32:43 2007 +0100 +++ b/gmyth-stream/server/0.2/lib/server.py Tue Jun 05 17:19:29 2007 +0100 @@ -3,7 +3,7 @@ __author__ = "Gustavo Sverzut Barbieri / Artur Duque de Souza" __author_email__ = "barbieri@gmail.com / artur.souza@indt.org.br" __license__ = "GPL" -__version__ = "0.3" +__version__ = "0.2" import os import threading diff -r ef4fb30176dd -r c764b0a92282 gmyth-stream/server/0.3/lib/request_handler.py --- a/gmyth-stream/server/0.3/lib/request_handler.py Tue Jun 05 12:32:43 2007 +0100 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Tue Jun 05 17:19:29 2007 +0100 @@ -357,10 +357,11 @@ elif self.query.get("type", "")[0] == "file" and \ self.query.get("uri", None): + + filename = self.query.get("uri", None)[0] + self.transcoders_log.insert(test_tid, "gms.%s" % filename) + try: - filename = self.query.get("uri", None)[0] - self.transcoders_log.insert(test_tid, "gms.%s" % filename) - media = open(filename) data_in = " " total_read = 0 @@ -375,8 +376,12 @@ self.transcoders_log._update_status(test_tid, msg_status) + self.transcoders_log._update_status(test_tid, "OK: Done") + except Exception, e: self.log.error("Stream error: %s" %e) + self.transcoders_log._update_status(test_tid, + "Error: %s" % e) # serve_stream()