diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-03-23 00:32:10 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-03-23 00:32:10 +0100 |
| commit | 0c7eeca673a4b1bda346b472badabcb67f8c2908 (patch) | |
| tree | c418a51ee8f18c364b16d16677e03e5120577d26 /lib/python/Components/EpgList.py | |
| parent | 010ff656ec07201a811571830de04bfa2c85676a (diff) | |
| download | enigma2-0c7eeca673a4b1bda346b472badabcb67f8c2908.tar.gz enigma2-0c7eeca673a4b1bda346b472badabcb67f8c2908.zip | |
handle empty bouquets
Diffstat (limited to 'lib/python/Components/EpgList.py')
| -rw-r--r-- | lib/python/Components/EpgList.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py index 2494ca08..fa60400f 100644 --- a/lib/python/Components/EpgList.py +++ b/lib/python/Components/EpgList.py @@ -297,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: @@ -306,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: |
