gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py
branchtrunk
changeset 744 ef4fb30176dd
parent 687 6c22199ff33e
     1.1 --- a/gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py	Thu May 17 22:16:15 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.2/plugins/transcoders/mencoder_lib/mythtv.py	Tue Jun 05 12:32:43 2007 +0100
     1.3 @@ -46,12 +46,16 @@
     1.4  
     1.5  def _setup_gmythcat(self):
     1.6      gmyth_cat = utils.which("gmyth-cat")
     1.7 -    return [ utils.which("gmyth-cat"),
     1.8 -            "-h", self.args["gmyth-cat"]["backend"],
     1.9 -            "-p", self.args["gmyth-cat"]["port"],
    1.10 -            "-" + self.args["gmyth-cat"]["kind"],
    1.11 -            self.args["gmyth-cat"]["cfile"]
    1.12 -           ]
    1.13 +    if self.args.has_key("gmyth-cat"):
    1.14 +        return [ utils.which("gmyth-cat"),
    1.15 +                 "-h", self.args["gmyth-cat"]["backend"],
    1.16 +                 "-p", self.args["gmyth-cat"]["port"],
    1.17 +                 "-" + self.args["gmyth-cat"]["kind"],
    1.18 +                 self.args["gmyth-cat"]["cfile"]
    1.19 +                 ]
    1.20 +    else:
    1.21 +        self.log.error("URI error")
    1.22 +        return []
    1.23  # _setup_gmythcat
    1.24  
    1.25  def start_myth(self, outfd):