aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-04 23:18:50 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-04 23:18:50 +0000
commitcbdae9732240da8ae902936fd8819ffbbae2f1cf (patch)
tree0c38ea97b3324f4af4653ad3cb98a055ff2f3b13 /lib/python
parent025ad01a86542cba4eaceabdde5bed9bf72c4344 (diff)
downloadenigma2-cbdae9732240da8ae902936fd8819ffbbae2f1cf.tar.gz
enigma2-cbdae9732240da8ae902936fd8819ffbbae2f1cf.zip
fix
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/EpgList.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py
index e9a87e2f..881bf241 100644
--- a/lib/python/Components/EpgList.py
+++ b/lib/python/Components/EpgList.py
@@ -180,18 +180,18 @@ 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))
+ if begTime is None:
+ begTime = 0
+ test.append((service, direction, begTime))
# 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]))
+ s = len(tmp)
+ cnt = 0
+ while(cnt < s):
+ x = tmp[cnt]
+ 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