1.1 --- a/gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py Wed May 16 19:46:20 2007 +0100
1.2 +++ b/gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py Wed May 16 21:56:47 2007 +0100
1.3 @@ -9,15 +9,16 @@
1.4
1.5 def _setup_mythfilename(self):
1.6 # mythtv:mythtv@192.168.3.110:6543/1002_20070426230000.nuv
1.7 -
1.8 try:
1.9 _mysql = self.args["input"].split("@")[0].split(":")
1.10 except IndexError, e:
1.11 _mysql = ["mythtv", "mythtv"]
1.12
1.13 - self.log.debug("aqui 1")
1.14 + try:
1.15 + _args = self.args["input"].split("@")[1].split(":")
1.16 + except IndexError, e:
1.17 + _args = self.args["input"].split(":")
1.18
1.19 - _args = self.args["input"].split("@")[1].split(":")
1.20 gmyth_dict = {}
1.21 gmyth_dict["mysql"] = _mysql
1.22 gmyth_dict["backend"] = _args[0]
1.23 @@ -27,18 +28,12 @@
1.24
1.25 _tmp_file = _args[1].split("/", 1)[1]
1.26
1.27 - self.log.debug("aqui 2a %s" % _tmp_file)
1.28 -
1.29 if _tmp_file.find("channel") >= 0:
1.30 gmyth_dict["kind"] = "c"
1.31 gmyth_dict["cfile"] = _tmp_file.split("=")[1]
1.32 - self.log.debug("aqui 3")
1.33 else:
1.34 gmyth_dict["kind"] = "f"
1.35 gmyth_dict["cfile"] = _tmp_file
1.36 - self.log.debug("aqui 4")
1.37 -
1.38 - self.log.debug("aqui 5")
1.39
1.40 self.args["input"] = "-"
1.41 return gmyth_dict