Merge branch 'master' of git.opendreambox.org:/git/enigma2
[enigma2.git] / lib / python / Components / EpgList.py
index 8bd8e75922ba83f8189f2ac8a492f7eb28164117..fa60400fd3c34641e2374fe9a89d598058f4e262 100644 (file)
@@ -289,6 +289,7 @@ class EPGList(HTMLComponent, GUIComponent):
                        else:
                                assert(type == 0)
                                list.sort(key=lambda x: x[2])
+                       self.l.invalidate()
                        self.moveToEventId(event_id)
 
        def getSelectedEventId(self):
@@ -296,6 +297,8 @@ class EPGList(HTMLComponent, GUIComponent):
                return x and x[1]
 
        def moveToService(self,serviceref):
+               if not serviceref:
+                       return
                index = 0
                refstr = serviceref.toString()
                for x in self.list:
@@ -305,6 +308,8 @@ class EPGList(HTMLComponent, GUIComponent):
                        index += 1
                        
        def moveToEventId(self, eventId):
+               if not eventId:
+                       return
                index = 0
                for x in self.list:
                        if x[1] == eventId: