# HG changeset patch # User morphbr # Date 1179349007 -3600 # Node ID b51559fec601e5f569e4e604e10403ebfe404d7a # Parent 4c7f6a9bfdede92081d8eb5337dfa9ff546bda7e [svn r682] * GMyth-Streamer - URI bug fix diff -r 4c7f6a9bfded -r b51559fec601 gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py --- a/gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py Wed May 16 19:46:20 2007 +0100 +++ b/gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py Wed May 16 21:56:47 2007 +0100 @@ -9,15 +9,16 @@ def _setup_mythfilename(self): # mythtv:mythtv@192.168.3.110:6543/1002_20070426230000.nuv - try: _mysql = self.args["input"].split("@")[0].split(":") except IndexError, e: _mysql = ["mythtv", "mythtv"] - self.log.debug("aqui 1") + try: + _args = self.args["input"].split("@")[1].split(":") + except IndexError, e: + _args = self.args["input"].split(":") - _args = self.args["input"].split("@")[1].split(":") gmyth_dict = {} gmyth_dict["mysql"] = _mysql gmyth_dict["backend"] = _args[0] @@ -27,18 +28,12 @@ _tmp_file = _args[1].split("/", 1)[1] - self.log.debug("aqui 2a %s" % _tmp_file) - if _tmp_file.find("channel") >= 0: gmyth_dict["kind"] = "c" gmyth_dict["cfile"] = _tmp_file.split("=")[1] - self.log.debug("aqui 3") else: gmyth_dict["kind"] = "f" gmyth_dict["cfile"] = _tmp_file - self.log.debug("aqui 4") - - self.log.debug("aqui 5") self.args["input"] = "-" return gmyth_dict