getConfigListEntry now supports more than two arguments
[enigma2.git] / lib / python / Components / MediaPlayer.py
index 45551ccc1f368e5a866eaaddb701ab0e653378f8..b2cb4eb57086f1afa3105aa48d7e6fcda497f0b0 100644 (file)
@@ -57,7 +57,7 @@ class PlayList(MenuList, HTMLComponent, GUIComponent):
                self.list = []
                self.l.setList(self.list)
                self.l.setFont(0, gFont("Regular", 18))
-               self.currPlaying = 0
+               self.currPlaying = -1
                self.oldCurrPlaying = -1
        
        def clear(self):
@@ -91,6 +91,8 @@ class PlayList(MenuList, HTMLComponent, GUIComponent):
                self.currPlaying = index
        
        def updateState(self, state):
+               if self.currPlaying == -1:
+                       return
                if len(self.list) > self.oldCurrPlaying and self.oldCurrPlaying != -1:
                        self.list[self.oldCurrPlaying] = PlaylistEntryComponent(self.list[self.oldCurrPlaying][0], STATE_NONE)
                self.list[self.currPlaying] = PlaylistEntryComponent(self.list[self.currPlaying][0], state)