X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1213cbcff4f8b31aa77825325f102a134d246e0a..eef9f3c2100087c15e1a007194f556aea4d3905e:/lib/python/Components/EpgList.py diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py index b7288792..53832b1b 100644 --- a/lib/python/Components/EpgList.py +++ b/lib/python/Components/EpgList.py @@ -180,18 +180,16 @@ class EPGList(HTMLComponent, GUIComponent): service = data[1] begTime = data[2] duration = data[3] - new_stime = 0 - if begTime is not None: - if direction > 0: - new_stime = begTime+duration+120 - else: - new_stime = begTime-120 - test.append((service, 0, new_stime)) - self.list = self.queryEPG(test, self.buildMultiEntry) -# tmp = self.queryEPG(test) -# self.list = [ ] -# for x in tmp: -# self.list.append(self.buildMultiEntry(x[0], x[1], x[2], x[3], x[4], x[5], x[6])) + if begTime is None: + begTime = 0 + test.append((service, direction, begTime)) +# self.list = self.queryEPG(test, self.buildMultiEntry) + tmp = self.queryEPG(test) + cnt=0 + for x in tmp: + if x[2] is not None: + self.list[cnt]=self.buildMultiEntry(x[0], x[1], x[2], x[3], x[4], x[5], x[6]) + cnt+=1 self.l.setList(self.list) print time() - t