gmyth-stream/server/0.3/lib/request_handler.py
branchtrunk
changeset 745 c764b0a92282
parent 744 ef4fb30176dd
child 748 bf9dac4bdc5d
     1.1 --- a/gmyth-stream/server/0.3/lib/request_handler.py	Tue Jun 05 12:32:43 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.3/lib/request_handler.py	Tue Jun 05 17:19:29 2007 +0100
     1.3 @@ -357,10 +357,11 @@
     1.4  
     1.5              elif self.query.get("type", "")[0] == "file" and \
     1.6                       self.query.get("uri", None):
     1.7 +
     1.8 +                filename = self.query.get("uri", None)[0]
     1.9 +                self.transcoders_log.insert(test_tid, "gms.%s" % filename)
    1.10 +
    1.11                  try:
    1.12 -                    filename = self.query.get("uri", None)[0]
    1.13 -                    self.transcoders_log.insert(test_tid, "gms.%s" % filename)
    1.14 -
    1.15                      media = open(filename)
    1.16                      data_in = " "
    1.17                      total_read = 0
    1.18 @@ -375,8 +376,12 @@
    1.19                          self.transcoders_log._update_status(test_tid,
    1.20                                                              msg_status)
    1.21  
    1.22 +                    self.transcoders_log._update_status(test_tid, "OK: Done")
    1.23 +
    1.24                  except Exception, e:
    1.25                      self.log.error("Stream error: %s" %e)
    1.26 +                    self.transcoders_log._update_status(test_tid,
    1.27 +                                                        "Error: %s" % e)
    1.28      # serve_stream()
    1.29  
    1.30