Exemplo n.º 1
0
    def grabXML(self):
        if config.cfg_xmltv_mc2xml.strip() != "":
            try:
                mcargs = config.cfg_xmltv_mc2xml.strip().split()
                print ("mc2xml will be called with: %s" % (mcargs))
                mcproc = subprocess.Popen(mcargs, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
                out, err = mcproc.communicate()
                if err:
                    print ("mc2xml ended with an error:\n%s" % (err))
                else:
                    print ("mc2xml ended without errors")
            except Exception as ex:
                print ("Error calling mc2xml: %s" % (ex))
                pass

        try:
            xmltv.getProgList(version)
        except Exception as ex:
            print ("XMLTV import could not be completed, please try again later (%s)" % ex)
        self.epggrabberstate[0] += 1
Exemplo n.º 2
0
    def grabXML(self):
        if config.cfg_xmltv_mc2xml.strip() != "":
            try:
                mcargs = config.cfg_xmltv_mc2xml.strip().split()
                print ("mc2xml will be called with: %s" % (mcargs))
                mcproc = subprocess.Popen(mcargs, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
                out, err = mcproc.communicate()
                if err:
                    print ("mc2xml ended with an error:\n%s" % (err))
                else:
                    print ("mc2xml ended without errors")
            except Exception as ex:
                print ("Error calling mc2xml: %s" % (ex))
                pass

        try:
            xmltv.getProgList(version)
        except Exception as ex:
            print ("XMLTV import could not be completed, please try again later (%s)" % ex)
        self.epggrabberstate[0] += 1
 def run(self):
     xmltv.getProgList(version)
     global epgrunning
     epgrunning = False
Exemplo n.º 4
0
 def run(self):
     xmltv.getProgList(version)
     global epgrunning
     epgrunning = False