some more fixes
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 5 Mar 2006 08:34:07 +0000 (08:34 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 5 Mar 2006 08:34:07 +0000 (08:34 +0000)
lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py

index ebd523f..2a7f588 100644 (file)
@@ -221,9 +221,9 @@ class AlternativeZapping(Screen):
                if not self.alternatives.has_key(serviceString):
                        self.alternatives[serviceString] = []
                self.updateServices()
                if not self.alternatives.has_key(serviceString):
                        self.alternatives[serviceString] = []
                self.updateServices()
-               self.updateAlternatives()
                self.selectService(serviceString)
                self.selectService(serviceString)
-
+               self.updateAlternatives()
+               
        def yellowKey(self):
                if len(self.serviceslist) > 0:
                        self.session.openWithCallback(self.finishedAlternativeSelection, SimpleChannelSelection, _("Select alternative service"))
        def yellowKey(self):
                if len(self.serviceslist) > 0:
                        self.session.openWithCallback(self.finishedAlternativeSelection, SimpleChannelSelection, _("Select alternative service"))
@@ -269,6 +269,8 @@ class ServiceChanged(PerServiceDisplay):
                                                                self.nextPlayTry += 1
 #                                                              print "Alternatives: Alternative doesn't play either"
                                                                self.tuneFailed()
                                                                self.nextPlayTry += 1
 #                                                              print "Alternatives: Alternative doesn't play either"
                                                                self.tuneFailed()
+                                       else:
+                                               self.lastPlayAction = None
 
                                        #print "Alternatives: No playable alternative found!"
 
 
                                        #print "Alternatives: No playable alternative found!"