git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow non-binary states
[enigma2.git]
/
lib
/
python
/
Components
/
EpgList.py
diff --git
a/lib/python/Components/EpgList.py
b/lib/python/Components/EpgList.py
index 8bd8e75922ba83f8189f2ac8a492f7eb28164117..fa60400fd3c34641e2374fe9a89d598058f4e262 100644
(file)
--- a/
lib/python/Components/EpgList.py
+++ b/
lib/python/Components/EpgList.py
@@
-289,6
+289,7
@@
class EPGList(HTMLComponent, GUIComponent):
else:
assert(type == 0)
list.sort(key=lambda x: x[2])
else:
assert(type == 0)
list.sort(key=lambda x: x[2])
+ self.l.invalidate()
self.moveToEventId(event_id)
def getSelectedEventId(self):
self.moveToEventId(event_id)
def getSelectedEventId(self):
@@
-296,6
+297,8
@@
class EPGList(HTMLComponent, GUIComponent):
return x and x[1]
def moveToService(self,serviceref):
return x and x[1]
def moveToService(self,serviceref):
+ if not serviceref:
+ return
index = 0
refstr = serviceref.toString()
for x in self.list:
index = 0
refstr = serviceref.toString()
for x in self.list:
@@
-305,6
+308,8
@@
class EPGList(HTMLComponent, GUIComponent):
index += 1
def moveToEventId(self, eventId):
index += 1
def moveToEventId(self, eventId):
+ if not eventId:
+ return
index = 0
for x in self.list:
if x[1] == eventId:
index = 0
for x in self.list:
if x[1] == eventId: