fix non working code
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 21 Jan 2007 00:14:48 +0000 (00:14 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 21 Jan 2007 00:14:48 +0000 (00:14 +0000)
lib/python/Components/EpgList.py

index 4444d3b..4a18232 100644 (file)
@@ -197,7 +197,8 @@ class EPGList(HTMLComponent, GUIComponent):
 
        def fillMultiEPG(self, services, stime=-1):
                t = time()
-               test = [ '0RIBDTCn', (service.ref.toString(), 0, stime) for service in services ]
+               test = [ (service.ref.toString(), 0, stime) for service in services ]
+               test.insert(0, '0RIBDTCn')
                self.list = self.queryEPG(test)
                self.l.setList(self.list)
                print time() - t
@@ -205,7 +206,8 @@ class EPGList(HTMLComponent, GUIComponent):
 
        def updateMultiEPG(self, direction):
                t = time()
-               test = [ 'RIBDTCn', x[3] and (x[1], x[4], x[3]) or (x[1], x[4], 0) for x in self.list ]
+               test = [ x[3] and (x[1], direction, x[3]) or (x[1], direction, 0) for x in self.list ]
+               test.insert(0, 'RIBDTCn')
                tmp = self.queryEPG(test)
                cnt=0
                for x in tmp: