dont open epglist when no epg is avail
[enigma2.git] / lib / python / Screens / InfoBar.py
index 62639c04d50f9876cf617aad02e9cdec9ed5e81c..78a47dddf03735587ccf56afb76c1574136f511e 100644 (file)
@@ -224,7 +224,12 @@ class InfoBar(Screen):
                        self.muteDialog.instance.hide()
 
        def showEPGList(self):
-               self.session.open(EPGSelection, self.session.nav.getCurrentlyPlayingServiceReference())
+               ref=self.session.nav.getCurrentlyPlayingServiceReference()
+               ptr=eEPGCache.getInstance()
+               if ptr.startTimeQuery(ref) != -1:
+                       self.session.open(EPGSelection, ref)
+               else:
+                       print 'no epg for service', ref.toString()
 
        def quit(self):
                self.session.open(Standby)