diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2008-12-03 18:05:47 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2008-12-03 18:05:47 +0100 |
| commit | 188224c032f898f7ddbb347839baba65550b5903 (patch) | |
| tree | 0e8d9cd7f345b276d34f62c6023fa65be7617333 /lib/python/Plugins/Extensions | |
| parent | f578712203706b4c07c5d12180709c0df1284a59 (diff) | |
| download | enigma2-188224c032f898f7ddbb347839baba65550b5903.tar.gz enigma2-188224c032f898f7ddbb347839baba65550b5903.zip | |
GraphMultiEpg: fix zap to services without events
Diffstat (limited to 'lib/python/Plugins/Extensions')
| -rw-r--r-- | lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py index 7f422c96..aff1c91d 100644 --- a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py +++ b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py @@ -93,13 +93,13 @@ class EPGList(HTMLComponent, GUIComponent): return event def getCurrent(self): - if self.cur_service is None or self.cur_event is None: + if self.cur_service is None: return ( None, None ) old_service = self.cur_service #(service, service_name, events) events = self.cur_service[2] refstr = self.cur_service[0] - if not events or not len(events): - return ( None, None ) + if self.cur_event is None or not events or not len(events): + return ( None, ServiceReference(refstr) ) event = events[self.cur_event] #(event_id, event_title, begin_time, duration) eventid = event[0] service = ServiceReference(refstr) |
