don't die on loadAlternatives when no file is present
[enigma2.git] / lib / python / Plugins / Extensions / ZappingAlternatives / plugin.py
index 53c9ab6..d3e8012 100644 (file)
@@ -67,7 +67,10 @@ class AlternativeZapping(Screen):
                self.serviceslist = []
                self.alternativeslist = []
                
                self.serviceslist = []
                self.alternativeslist = []
                
-               self.loadAlternatives()
+               try:
+                       self.loadAlternatives()
+               except:
+                       pass
                self["serviceslist"] = MenuList(self.serviceslist)
                self["alternativeslist"] = MenuList(self.alternativeslist)
 
                self["serviceslist"] = MenuList(self.serviceslist)
                self["alternativeslist"] = MenuList(self.alternativeslist)
 
@@ -184,6 +187,7 @@ class AlternativeZapping(Screen):
 
                        for x in alternativelist:
                                self.alternativeslist.append((ServiceReference(x).getServiceName(), x))
 
                        for x in alternativelist:
                                self.alternativeslist.append((ServiceReference(x).getServiceName(), x))
+                               print ServiceReference(x).frontendStatusInfo().getFrontendData(True)
                        
                self["alternativeslist"].l.setList(self.alternativeslist)
                        
                        
                self["alternativeslist"].l.setList(self.alternativeslist)