1.1 --- a/gmyth-stream/server/0.2/lib/server.py Tue Jun 05 12:32:43 2007 +0100
1.2 +++ b/gmyth-stream/server/0.2/lib/server.py Tue Jun 05 17:19:29 2007 +0100
1.3 @@ -3,7 +3,7 @@
1.4 __author__ = "Gustavo Sverzut Barbieri / Artur Duque de Souza"
1.5 __author_email__ = "barbieri@gmail.com / artur.souza@indt.org.br"
1.6 __license__ = "GPL"
1.7 -__version__ = "0.3"
1.8 +__version__ = "0.2"
1.9
1.10 import os
1.11 import threading
2.1 --- a/gmyth-stream/server/0.3/lib/request_handler.py Tue Jun 05 12:32:43 2007 +0100
2.2 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Tue Jun 05 17:19:29 2007 +0100
2.3 @@ -357,10 +357,11 @@
2.4
2.5 elif self.query.get("type", "")[0] == "file" and \
2.6 self.query.get("uri", None):
2.7 +
2.8 + filename = self.query.get("uri", None)[0]
2.9 + self.transcoders_log.insert(test_tid, "gms.%s" % filename)
2.10 +
2.11 try:
2.12 - filename = self.query.get("uri", None)[0]
2.13 - self.transcoders_log.insert(test_tid, "gms.%s" % filename)
2.14 -
2.15 media = open(filename)
2.16 data_in = " "
2.17 total_read = 0
2.18 @@ -375,8 +376,12 @@
2.19 self.transcoders_log._update_status(test_tid,
2.20 msg_status)
2.21
2.22 + self.transcoders_log._update_status(test_tid, "OK: Done")
2.23 +
2.24 except Exception, e:
2.25 self.log.error("Stream error: %s" %e)
2.26 + self.transcoders_log._update_status(test_tid,
2.27 + "Error: %s" % e)
2.28 # serve_stream()
2.29
2.30